@@ -10,23 +10,45 @@ repository = { workspace = true }
1010categories = [" cryptography" ]
1111include = [" **/*.rs" , " Cargo.toml" , " README.md" , " .gitignore" ]
1212
13+ [package .metadata .docs .rs ]
14+ all-features = true
15+ # enable unstable features in the documentation
16+ rustdoc-args = [" --cfg" , " docsrs" ]
17+
1318[lib ]
1419crate-type = [" lib" , " cdylib" , " staticlib" ]
1520
16- [[test ]]
17- name = " snapshot_list_get_show_download_verify"
18- path = " tests/snapshot_list_get_show_download_verify.rs"
19- required-features = [" fs" ]
21+ [features ]
22+ # Include native-tls in reqwest by default
23+ default = [" native-tls" , " rug-backend" , " enable-http-compression" ]
2024
21- [[test ]]
22- name = " cardano_transaction_proof"
23- path = " tests/cardano_transaction_proof.rs"
24- required-features = [" unstable" ]
25+ # Full feature set
26+ full = [" fs" ]
2527
26- [[test ]]
27- name = " cardano_db_snapshot_list_get_download_verify"
28- path = " tests/cardano_db_snapshot_list_get_download_verify.rs"
29- required-features = [" unstable" , " fs" ]
28+ # Enable file system related functionality, right now that mean only snapshot download
29+ fs = [" flate2" , " flume" , " tar" , " tokio/rt" , " zstd" ]
30+ portable = [] # deprecated, will be removed soon
31+ unstable = []
32+
33+ # These features are for support of dependent crates only.
34+ # They do not change the operation of the main crate.
35+ native-tls = [" reqwest/native-tls" ]
36+ native-tls-alpn = [" reqwest/native-tls-alpn" ]
37+ native-tls-vendored = [" reqwest/native-tls-vendored" ]
38+
39+ rustls-tls = [" reqwest/rustls-tls" ]
40+ rustls-tls-manual-roots = [" reqwest/rustls-tls-manual-roots" ]
41+ rustls-tls-webpki-roots = [" reqwest/rustls-tls-webpki-roots" ]
42+ rustls-tls-native-roots = [" reqwest/rustls-tls-native-roots" ]
43+
44+ # Support compressed traffic with `reqwest`
45+ enable-http-compression = [" reqwest/gzip" , " reqwest/zstd" , " reqwest/deflate" , " reqwest/brotli" ]
46+
47+ # Enables usage of `rug` numerical backend in `mithril-stm` (dependency of `mithril-common`).
48+ rug-backend = [" mithril-common/rug-backend" ]
49+ # Enables usage of `num-integer` numerical backend in `mithril-stm` (dependency of `mithril-common`)
50+ # by default it's `rug-backend`
51+ num-integer-backend = [" mithril-common/num-integer-backend" ]
3052
3153[dependencies ]
3254anyhow = { workspace = true }
@@ -77,39 +99,17 @@ slog-term = { workspace = true }
7799tokio = { workspace = true , features = [" macros" ] }
78100warp = { workspace = true }
79101
80- [features ]
81- # Include native-tls in reqwest by default
82- default = [" native-tls" , " rug-backend" , " enable-http-compression" ]
83-
84- # Full feature set
85- full = [" fs" ]
86-
87- # Enable file system related functionality, right now that mean only snapshot download
88- fs = [" flate2" , " flume" , " tar" , " tokio/rt" , " zstd" ]
89- portable = [] # deprecated, will be removed soon
90- unstable = []
91-
92- # These features are for support of dependent crates only.
93- # They do not change the operation of the main crate.
94- native-tls = [" reqwest/native-tls" ]
95- native-tls-alpn = [" reqwest/native-tls-alpn" ]
96- native-tls-vendored = [" reqwest/native-tls-vendored" ]
97-
98- rustls-tls = [" reqwest/rustls-tls" ]
99- rustls-tls-manual-roots = [" reqwest/rustls-tls-manual-roots" ]
100- rustls-tls-webpki-roots = [" reqwest/rustls-tls-webpki-roots" ]
101- rustls-tls-native-roots = [" reqwest/rustls-tls-native-roots" ]
102-
103- # Support compressed traffic with `reqwest`
104- enable-http-compression = [" reqwest/gzip" , " reqwest/zstd" , " reqwest/deflate" , " reqwest/brotli" ]
102+ [[test ]]
103+ name = " snapshot_list_get_show_download_verify"
104+ path = " tests/snapshot_list_get_show_download_verify.rs"
105+ required-features = [" fs" ]
105106
106- # Enables usage of `rug` numerical backend in `mithril-stm` (dependency of `mithril-common`).
107- rug-backend = [" mithril-common/rug-backend" ]
108- # Enables usage of `num-integer` numerical backend in `mithril-stm` (dependency of `mithril-common`)
109- # by default it's `rug-backend`
110- num-integer-backend = [" mithril-common/num-integer-backend" ]
107+ [[test ]]
108+ name = " cardano_transaction_proof"
109+ path = " tests/cardano_transaction_proof.rs"
110+ required-features = [" unstable" ]
111111
112- [package . metadata . docs . rs ]
113- all-features = true
114- # enable unstable features in the documentation
115- rustdoc-args = [" --cfg " , " docsrs " ]
112+ [[ test ] ]
113+ name = " cardano_db_snapshot_list_get_download_verify "
114+ path = " tests/cardano_db_snapshot_list_get_download_verify.rs "
115+ required-features = [" unstable " , " fs " ]
0 commit comments