Cargo Features

[dependencies]
salvo_core = { version = "0.74.2", default-features = false, features = ["full", "cookie", "fix-http1-request-uri", "server", "server-handle", "http1", "http2", "http2-cleartext", "quinn", "rustls", "native-tls", "openssl", "unix", "acme", "socket2", "ring", "test"] }
default = cookie, fix-http1-request-uri, http1, http2, ring, server, server-handle, test

These default features are set whenever salvo_core is added without default-features = false somewhere in the dependency tree.

full = anyhow, cookie, eyre, fix-http1-request-uri, http1, http2, http2-cleartext, native-tls, openssl, quinn, ring, rustls, server, socket2, test, unix

Enables cookie

Affects response::Response.cookies

fix-http1-request-uri default full? = http1
server default full?
server-handle default
http1 default acme? fix-http1-request-uri full? unix?
http2 default acme? full? http2-cleartext?

Enables http2 of hyper

http2-cleartext full? = http2
quinn full? = rustls

Enables quinn and salvo-http3

rustls full? quinn? = ring

Enables rustls-pemfile and tokio-rustls

Affects conn::IntoConfigStream

native-tls full?

Enables native-tls and tokio-native-tls

Affects conn::IntoConfigStream

openssl full?

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

socket2 full?

Enables socket2

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.

anyhow full?
eyre full?