Cargo Features
[dependencies]
prest = { version = "0.2.0", default-features = false, features = ["auth", "db", "embed", "html", "https", "traces", "lazy-embed", "webview"] }
- default = db, embed, html, traces
-
These default features are set whenever
prest
is added without
somewhere in the dependency tree.default-features = false - auth = axum-login, db, openidconnect, password-auth, tower-sessions
- db default auth? = gluesql, prest-db-macro
- embed default lazy-embed? = hex, prest-embed-macro, prest-embed-utils
- html default = prest-html-macro
-
Affects
lib::DOCTYPE
… - https
-
Enables tls-rustls of axum-server
- traces default = tracing-subscriber, tracing-web
-
Enables tracing of axum, trace of tower-http
- lazy-embed = embed
-
Enables lazy-embed of prest-embed-macro and prest-embed-utils
- webview = tao, wry
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.
- prest-html-macro html
- prest-embed-macro embed lazy-embed?
- prest-embed-utils embed lazy-embed?
- prest-db-macro db
- hex embed
- axum-login not wasm32 auth?
-
Enables axum-login ^0.12
- gluesql not wasm32 wasm32 db
- openidconnect not wasm32 auth?
- password-auth not wasm32 auth?
- tao not wasm32 webview?
-
Enables tao ^0.24
- tower-sessions not wasm32 auth?
-
Enables tower-sessions ^0.9
- tracing-subscriber wasm32 not wasm32 traces
- tracing-web wasm32 traces
- wry not wasm32 webview?
-
Enables wry ^0.35