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 whenever slimweb is added without default-features = false somewhere in the dependency tree.

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?