Cargo Features
[dependencies]
slimweb = { version = "0.3.0", default-features = false, features = ["client", "server", "tls", "json", "compress", "multipart", "punycode"] }
- default = client
-
The
client
feature is set by default wheneverslimweb
is added without
somewhere in the dependency tree.default-features = false - client default
- server
- tls = lazy_static, rustls, webpki, webpki-roots
- json = serde_json
- compress = flate2
- multipart = mime_guess
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.
- punycode implicit feature
-
Enables punycode
punycode:
Functions to decode and encode Punycode
- serde_json json?
- rustls tls?
-
Enables rustls ^0.16
- webpki tls?
-
Enables webpki ^0.21
- webpki-roots tls?
-
Enables webpki-roots ^0.18
- lazy_static tls?
- flate2 compress?
- mime_guess multipart?