@@ -17,9 +17,9 @@ sigma-util = { workspace = true }
17
17
ergo-chain-types = { workspace = true }
18
18
ergotree-ir = { workspace = true }
19
19
ergotree-interpreter = { workspace = true }
20
- ergo-nipopow = { workspace = true }
20
+ ergo-nipopow = { workspace = true , optional = true }
21
21
ergoscript-compiler = { workspace = true , optional = true }
22
- ergo-merkle-tree = { workspace = true }
22
+ ergo-merkle-tree = { workspace = true , optional = true }
23
23
ergo-rest = { workspace = true , optional = true }
24
24
indexmap = { workspace = true }
25
25
base16 = { workspace = true }
@@ -28,39 +28,44 @@ serde_json = { workspace = true, optional = true }
28
28
thiserror = { workspace = true }
29
29
derive_more = { workspace = true }
30
30
bounded-vec = { workspace = true }
31
- num-bigint = { workspace = true , features = [" serde" ] }
32
31
proptest-derive = { workspace = true , optional = true }
33
32
k256 = { workspace = true }
34
33
sha2 = { workspace = true }
35
34
hmac = { version = " 0.12" }
36
35
pbkdf2 = " 0.11"
37
- rand = { workspace = true }
36
+ rand = { workspace = true , optional = true }
38
37
bitvec = { workspace = true , optional = true }
39
- unicode-normalization = " 0.1.19"
38
+ unicode-normalization = { version = " 0.1.19" , default-features = false }
40
39
lazy_static = { workspace = true }
41
40
proptest = { workspace = true , optional = true }
42
41
serde_with = { workspace = true , optional = true }
43
- itertools = { workspace = true }
42
+ hashbrown = { workspace = true }
44
43
45
44
46
45
[features ]
47
- default = [" json" ]
46
+ default = [" std" , " json" , " nipopow" , " merkle" ]
47
+ std = [" rand" , " ergotree-ir/std" , " ergotree-interpreter/std" ]
48
48
json = [
49
49
" serde" ,
50
50
" serde_json" ,
51
51
" serde_with" ,
52
52
" bounded-vec/serde" ,
53
53
" ergotree-ir/json" ,
54
+ " ergotree-interpreter/json" ,
55
+ " ergo-merkle-tree?/json" ,
54
56
]
55
57
compiler = [" ergoscript-compiler" ]
56
58
arbitrary = [
59
+ " std" ,
57
60
" proptest" ,
58
61
" proptest-derive" ,
59
62
" ergotree-ir/arbitrary" ,
60
63
" ergo-chain-types/arbitrary" ,
61
64
" ergotree-interpreter/arbitrary" ,
62
65
]
63
- mnemonic_gen = [" bitvec" ]
66
+ merkle = [" ergo-merkle-tree" ]
67
+ nipopow = [" ergo-nipopow" ]
68
+ mnemonic_gen = [" bitvec" , " rand" ]
64
69
rest = [" ergo-rest" ]
65
70
66
71
[dev-dependencies ]
@@ -73,3 +78,11 @@ pretty_assertions = { workspace = true }
73
78
bs58 = { workspace = true }
74
79
byteorder = { workspace = true }
75
80
expect-test = { workspace = true }
81
+
82
+
83
+ # docs.rs-specific configuration
84
+ [package .metadata .docs .rs ]
85
+ # document all features
86
+ all-features = true
87
+ # enable docsrs flag, which lets us enable doc_auto_cfg to mark feature-gated functionality in documentation
88
+ rustdoc-args = [" --cfg" , " docsrs" ]
0 commit comments