Cargo Features
[dependencies]
salvo_core = { version = "0.67.1", default-features = false, features = ["full", "cookie", "fix-http1-request-uri", "server", "http1", "http2", "quinn", "rustls", "native-tls", "openssl", "unix", "acme", "tower-compat", "ring", "test"] }
- default = cookie, fix-http1-request-uri, http1, http2, ring, server, test
-
These default features are set whenever
salvo_core
is added without
somewhere in the dependency tree.default-features = false - full = anyhow, cookie, eyre, fix-http1-request-uri, http1, http2, native-tls, openssl, quinn, ring, rustls, server, test, tower-compat, unix
-
Enables cookie
Affects
response::Response.cookies
… - fix-http1-request-uri default full? = http1
- server default full?
- http1 default acme? fix-http1-request-uri full? native-tls? rustls? unix?
- http2 default acme? full? native-tls? openssl? rustls?
- quinn full? = rustls
-
Enables quinn, rustls-pemfile ^1, salvo-http3, and tokio-rustls ^0.24
- rustls full? quinn? = http1, http2, ring
-
Enables rustls-pemfile and tokio-rustls
Affects
conn::IntoConfigStream
… - native-tls full? = http1, http2
-
Enables native-tls and tokio-native-tls
Affects
conn::IntoConfigStream
… - openssl full? = http2
-
Enables openssl and tokio-openssl
Affects
conn::IntoConfigStream
… - unix full? = http1
- acme = http1, http2, ring
-
Enables hyper-rustls, rcgen, ring, rustls-pemfile, tokio-rustls, and x509-parser, client-legacy, http1 and http2 of hyper-util
- tower-compat full?
-
Enables tower
- ring default acme? full? rustls?
-
Enables ring of optional hyper-rustls and optional tokio-rustls
- test default full?
-
Enables brotli, encoding_rs, flate2, serde_urlencoded, tokio, url, and zstd
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.