Skip to content

Commit c9e21e5

Browse files
committed
docs: add optional features section to lib.rs
1 parent a15435c commit c9e21e5

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

mithril-client/src/lib.rs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,28 @@
6262
//! # Ok(())
6363
//! # }
6464
//! ```
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+
//! - **native-tls** *(enabled by default)*: Enables TLS functionality provided by `native-tls`.
74+
//! - **native-tls-vendored**: Enables the `vendored` feature of `native-tls`.
75+
//! - **native-tls-alpn**: Enables the `alpn` feature of `native-tls`.
76+
//! - **rustls-tls**: Enables TLS functionality provided by `rustls`.
77+
//! Equivalent to `rustls-tls-webpki-roots`.
78+
//! - **rustls-tls-manual-roots**: Enables TLS functionality provided by `rustls`,
79+
//! without setting any root certificates. Roots have to be specified manually.
80+
//! - **rustls-tls-webpki-roots**: Enables TLS functionality provided by `rustls`,
81+
//! while using root certificates from the `webpki-roots` crate.
82+
//! - **rustls-tls-native-roots**: Enables TLS functionality provided by `rustls`,
83+
//! while using root certificates from the `rustls-native-certs` crate.
84+
//! - **enable-http-compression** *(enabled by default)*: Enables compressed traffic with `reqwest`.
85+
//! - **rug-backend** *(enabled by default)*: Enables `rug-backend` features for `mithril-common` dependency.
86+
//! - **num-integer-backend**: Enables `num-integer-backend` features for `mithril-common` dependency.
6587
6688
macro_rules! cfg_fs {
6789
($($item:item)*) => {

0 commit comments

Comments
 (0)