Cargo Features
[dependencies]
silent = { version = "1.5.0", default-features = false, features = ["full", "admin", "server", "upgrade", "multipart", "sse", "security", "static", "session", "cookie", "template", "scheduler", "grpc", "test"] }
- default = server, test
-
These default features are set whenever
silent
is added without
somewhere in the dependency tree.default-features = false - full = admin, cookie, grpc, multipart, scheduler, security, server, session, sse, static, template, test, upgrade
- admin full? = server, session, sse, template
- server default admin? full?
-
Enables net, rt-multi-thread and signal of tokio
Affects
form::FormData.files
… - upgrade full? grpc?
-
Enables tokio-tungstenite
Affects
handler_append::WSHandlerAppend
… - multipart full?
-
Enables fs of tokio and multer, multimap, tempfile, and textnonce
multer:
Multipart
- sse admin? full?
-
Enables pin-project and tokio-stream
- security full?
-
Enables aes, aes-gcm, argon2, pbkdf2, and rsa
argon2:
Security
- static full?
- session admin? full? = cookie
-
Enables async-session
Session
-
Enables cookie
- template admin? full?
-
Enables tera
Template
- scheduler full?
-
Enables cron
Scheduler
- grpc full? = upgrade
-
Enables pin-project, pin-project-lite, tokio-stream, and tonic
tonic:
Grpc
Affects
utils::merge_grpc_response
… - test default full?
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.