You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: mithril-client/src/lib.rs
+24Lines changed: 24 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -62,6 +62,30 @@
62
62
//! # Ok(())
63
63
//! # }
64
64
//! ```
65
+
//!
66
+
//! ## Optional Features
67
+
//!
68
+
//! The following are a list of [Cargo features](https://doc.rust-lang.org/stable/cargo/reference/manifest.html#the-features-section) that can be
69
+
//! enabled or disabled:
70
+
//!
71
+
//! - **fs**: Enables file system related functionalities.
72
+
//! - **unstable**: Enables experimental or in-development `mithril-client` features that may change.
73
+
//! - **rug-backend** *(enabled by default)*: Enables usage of `rug` numerical backend in `mithril-stm` (dependency of `mithril-common`).
74
+
//! - **num-integer-backend**: Enables usage of `num-integer` numerical backend in `mithril-stm` (dependency of `mithril-common`).
75
+
//!
76
+
//! To allow fine tuning of the http queries, the following [Reqwest](https://docs.rs/reqwest/latest/reqwest/#optional-features) features are re-exported:
77
+
//! - **native-tls** *(enabled by default)*: Enables TLS functionality provided by `native-tls`.
78
+
//! - **native-tls-vendored**: Enables the `vendored` feature of `native-tls`.
79
+
//! - **native-tls-alpn**: Enables the `alpn` feature of `native-tls`.
80
+
//! - **rustls-tls**: Enables TLS functionality provided by `rustls`.
81
+
//! Equivalent to `rustls-tls-webpki-roots`.
82
+
//! - **rustls-tls-manual-roots**: Enables TLS functionality provided by `rustls`,
83
+
//! without setting any root certificates. Roots have to be specified manually.
84
+
//! - **rustls-tls-webpki-roots**: Enables TLS functionality provided by `rustls`,
85
+
//! while using root certificates from the `webpki-roots` crate.
86
+
//! - **rustls-tls-native-roots**: Enables TLS functionality provided by `rustls`,
87
+
//! while using root certificates from the `rustls-native-certs` crate.
88
+
//! - **enable-http-compression** *(enabled by default)*: Enables compressed traffic with `reqwest`.
0 commit comments