Cargo Features
soph-server has no features set by default.
[dependencies]
soph-server = { version = "0.26.0", features = ["config", "http1", "http2", "middleware-asset", "middleware-auth", "middleware-body-limit", "middleware-catch-panic", "middleware-compression", "middleware-cors", "middleware-decompression", "middleware-fallback", "middleware-livereload", "middleware-metrics", "middleware-rate-limit", "middleware-request-id", "middleware-set-sensitive-request-headers", "middleware-timeout", "middleware-tracing", "middleware", "request-auth", "request-form", "request-id", "request-json", "request-multipart", "request-path", "request-query", "request-validate", "request", "response-cookie", "response-json", "response-view", "response", "database"] }
- config http1? http2? middleware-body-limit? middleware-cors? middleware-rate-limit? middleware-request-id? middleware-timeout? request-auth? response-json?
-
Enables soph-config
Affects
soph-server::config
… - http1 = config
-
http
Enables soph-runtime and tokio, http1 and tokio of axum, server of soph-core
- http2 = config
-
Enables soph-runtime and tokio, http2 and tokio of axum, server of soph-core
- middleware-asset middleware?
-
http:middleware
Enables soph-config and soph-view, fs of tower-http
- middleware-auth middleware? = request-auth
- middleware-body-limit middleware? = config
- middleware-catch-panic middleware?
-
Enables catch-panic of tower-http
- middleware-compression middleware?
-
Enables compression-gzip of tower-http
- middleware-cors middleware? = config
-
Enables cors of tower-http
- middleware-decompression middleware?
-
Enables decompression-gzip of tower-http
- middleware-fallback middleware?
- middleware-livereload middleware?
-
Enables tower-livereload
- middleware-metrics middleware?
-
Enables metrics, matched-path of axum
- middleware-rate-limit middleware? = config
- middleware-request-id middleware? request-id? = config
-
Enables tower, request-id of tower-http, v7 of uuid
- middleware-set-sensitive-request-headers middleware?
-
Enables sensitive-headers of tower-http
- middleware-timeout middleware? = config
- middleware-tracing middleware? = request-id
-
Enables soph-config, trace of tower-http
- middleware = middleware-asset, middleware-auth, middleware-body-limit, middleware-catch-panic, middleware-compression, middleware-cors, middleware-decompression, middleware-fallback, middleware-livereload, middleware-metrics, middleware-rate-limit, middleware-request-id, middleware-set…request-headers, middleware-timeout, middleware-tracing
- request-auth middleware-auth? request? = config
-
http:request
Enables soph-auth, query of axum and cookie of axum-extra
optional
Affects
request::RequestTrait.user
,request::RequestTrait.token
… - request-form request? request-validate?
-
Affects
request::RequestTrait.form
… - request-id middleware-tracing? request? = middleware-request-id
-
Affects
request::RequestTrait.id
… - request-json request? request-validate?
-
Affects
request::RequestTrait.json
… - request-multipart request? request-validate?
-
Affects
request::RequestTrait.multipart
,request::RequestTrait.file
… - request-path request?
-
Enables matched-path of axum
- request-query request?
-
Affects
request::RequestTrait.query
… - request-validate request? = request-form, request-json, request-multipart
-
Enables validator
Affects
request::RequestTrait.validate
… - request = request-auth, request-form, request-id, request-json, request-multipart, request-path, request-query, request-validate
-
http:response
Enables cookie of axum-extra
- response-json response? = config, database
-
Affects
format::json
… - response-view response? = database
- response = response-cookie, response-json, response-view
- database response-cookie? response-json? response-view?
-
support
Enables sea-orm
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.