@@ -10,23 +10,45 @@ repository = { workspace = true }
10
10
categories = [" cryptography" ]
11
11
include = [" **/*.rs" , " Cargo.toml" , " README.md" , " .gitignore" ]
12
12
13
+ [package .metadata .docs .rs ]
14
+ all-features = true
15
+ # enable unstable features in the documentation
16
+ rustdoc-args = [" --cfg" , " docsrs" ]
17
+
13
18
[lib ]
14
19
crate-type = [" lib" , " cdylib" , " staticlib" ]
15
20
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" ]
20
24
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" ]
25
27
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" ]
30
52
31
53
[dependencies ]
32
54
anyhow = { workspace = true }
@@ -77,39 +99,17 @@ slog-term = { workspace = true }
77
99
tokio = { workspace = true , features = [" macros" ] }
78
100
warp = { workspace = true }
79
101
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" ]
105
106
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" ]
111
111
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