Cargo Features
zino-core has no features set by default.
[dependencies]
zino-core = { version = "0.30.1", features = ["full", "all-locales", "all-validators", "apalis", "cookie", "crypto-sm", "debug", "dotenv", "env-filter", "http-client", "locale", "locale-en", "locale-es", "locale-de", "locale-fr", "locale-zh", "metrics", "runtime-async-std", "runtime-tokio", "sentry", "sqlx", "tls-native", "tls-rustls", "tracing-log", "tracing-subscriber", "validator", "validator-credit-card", "validator-email", "validator-phone-number", "validator-regex"] }
- full = all-locales, all-validators, apalis, cookie, dotenv, env-filter, http-client, metrics, sqlx, tracing-log
- all-locales full? = locale, locale-de, locale-en, locale-es, locale-fr, locale-zh
- all-validators full? = validator-credit-card, validator-email, validator-phone-number, validator-regex
- apalis full?
-
Enables apalis
- crypto-sm
- debug
-
Enables preserve_order of serde_json and toml
serde_json:
Make serde_json::Map use a representation which maintains insertion order.
This allows data to be read into a Value and written back to a JSON string while preserving the order of map keys in the input. - dotenv full?
-
Enables dotenvy
- env-filter full?
-
Enables env-filter and smallvec of tracing-subscriber
- http-client full? = reqwest
-
Enables reqwest-middleware and reqwest-tracing
Affects
application::Application.fetch
,application::Application.fetch_json
… - locale all-locales? locale-de? locale-en? locale-es? locale-fr? locale-zh? = random_word
- locale-en all-locales? = locale
-
Enables en of random_word
- locale-es all-locales? = locale
-
Enables es of random_word
- locale-de all-locales? = locale
-
Enables de of random_word
- locale-fr all-locales? = locale
-
Enables fr of random_word
- locale-zh all-locales? = locale
-
Enables zh of random_word
- metrics full?
-
Enables metrics and metrics-exporter-prometheus and prometheus of optional apalis
apalis:
Support Prometheus metrics
- runtime-async-std
-
Enables runtime-async-std of optional sqlx
sqlx:
Base runtime features without TLS
- runtime-tokio
-
Enables runtime-tokio of optional sqlx
- sentry = tracing-subscriber
-
Enables sentry and sentry-tracing and sentry of optional apalis
apalis:
Support for Sentry exception and performance monitoring
- sqlx full?
-
Enables sqlx
- tls-native
-
Enables tls-native-tls of optional sqlx and native-tls of optional reqwest and optional sentry
reqwest:
Enables native-tls specific functionality not available by default.
- tls-rustls
-
Enables rustls-tls-native-roots of optional reqwest, rustls of optional sentry and tls-rustls of optional sqlx
sqlx:
For backwards compatibility
- tracing-log full?
-
Enables tracing-log, tracing-log of tracing-subscriber
- tracing-subscriber env-filter? sentry? tracing-log?
-
Enables tracing-appender and tracing-subscriber
- validator validator-credit-card? validator-email? validator-phone-number? validator-regex?
- validator-credit-card all-validators? = validator
-
Enables card-validate
- validator-email all-validators? = validator
- validator-phone-number all-validators? = validator
-
Enables phonenumber
- validator-regex all-validators? = validator
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.