Cargo Features
ayun-server has no features set by default.
[dependencies]
ayun-server = { version = "0.23.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-logger", "middleware-metrics", "middleware-rate-limit", "middleware-request-id", "middleware-set-sensitive-request-headers", "middleware-timeout", "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 ayun-config
Affects
ayun-server::config
… - http1 = config
-
http
Enables ayun-runtime and tokio, http1 and tokio of axum, http1 of ayun-core
- http2 = config
-
Enables ayun-runtime and tokio, http2 and tokio of axum, http2 of ayun-core
- middleware-asset middleware?
-
http:middleware
Enables ayun-config and ayun-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-logger middleware? = request-id
-
Enables ayun-config, trace of tower-http
- 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 = middleware-asset, middleware-auth, middleware-body-limit, middleware-catch-panic, middleware-compression, middleware-cors, middleware-decompression, middleware-fallback, middleware-livereload, middleware-logger, middleware-metrics, middleware-rate-limit, middleware-request-id, middleware-set…request-headers, middleware-timeout
- request-auth middleware-auth? request? = config
-
http:request
Enables ayun-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-logger? 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 ^0.18.1
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.