-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathCargo.toml
58 lines (52 loc) · 1.49 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
[package]
name = "strict_encoding"
version = { workspace = true }
description = "Strict encoding: deterministic & confined binary serialization for strict types"
keywords = ["strict-types", "gadt", "serialization", "serde", "protobuf"]
categories = ["encoding", "parsing"]
authors = { workspace = true }
repository = { workspace = true }
homepage = { workspace = true }
edition = { workspace = true }
license = { workspace = true }
rust-version = { workspace = true }
readme = "README.md"
exclude = ["derive", "test_helpers"]
[dependencies]
amplify = { workspace = true, features = ["proc_attr"] }
strict_encoding_derive = { version = "2.8.0", path = "derive" }
serde_crate = { workspace = true, optional = true }
[dev-dependencies]
amplify = { workspace = true, features = ["proc_attr", "hex"] }
ciborium = "0.2.2"
half = "<2.5.0"
serde_json = "1.0.140"
serde_yaml = "0.9.34"
strict_encoding_test = { path = "./test_helpers" }
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = "0.2"
rand = { version = "0.8.4", optional = true }
getrandom = { version = "0.2", features = ["js"], optional = true }
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
wasm-bindgen-test = "0.3"
[features]
default = [
"derive"
]
all = [
"float",
"derive",
"serde"
]
derive = []
float = [
"amplify/apfloat",
]
half = [] # TODO: Remove this with major version update
serde = [
"serde_crate",
"amplify/serde"
]
[package.metadata.docs.rs]
all-features = true
rustc-args = ["--cfg", "docsrs"]