Cargo Features

zino-http has no features set by default.

[dependencies]
zino-http = { version = "0.1.2", features = ["auth", "cookie", "i18n", "http02", "jwt", "metrics", "openapi", "view"] }
auth jwt? = zino-auth

Affects request::RequestContext.parse_authentication, request::RequestContext.parse_access_key_id, request::RequestContext.parse_security_token, request::RequestContext.parse_session_id

Enables cookie, cookies of reqwest, cookie of zino-core

Affects request::RequestContext.new_cookie, request::RequestContext.get_cookie

i18n

Enables fluent, intl-memoizer, and unic-langid

Affects zino-http::i18n, request::RequestContext.locale, request::RequestContext.translate

http02

Enables http ^0.2.12

Affects response::StatusCode

jwt = auth

Enables jwt-simple, jwt of zino-auth

Affects request::RequestContext.parse_jwt_claims

metrics

Enables metrics, metrics of zino-core

openapi

Enables openapi of zino-core

view

Enables view of zino-core

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.

zino-auth auth? jwt?