Cargo Features
[dependencies]
telegraph-rs = { version = "0.6.3", default-features = false, features = ["upload", "html", "native-tls", "rustls"] }
- default = html, native-tls, upload
-
These default features are set whenever
telegraph-rs
is added without
somewhere in the dependency tree.default-features = false - upload default = mime_guess
-
Affects
types::Uploadable
,utils::guess_mime
,utils::read_to_bytes
… - html default = html_parser
-
Affects
utils::html_to_node
… - native-tls default
-
Enables native-tls of reqwest
reqwest:
Enables native-tls specific functionality not available by default.
- rustls
-
Enables rustls-tls of reqwest
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.