Cargo Features

[dependencies]
authzen-service-util = { version = "0.1.0-alpha.0", default-features = false, features = ["axum-05", "axum-06", "client", "db", "graphql", "grpc", "http1", "http2", "max-allowed-request-body-size-large", "max-allowed-request-body-size-medium", "max-allowed-request-body-size-small", "server", "trace", "try-join-safe", "axum-core", "cookie", "data-encoding", "mongodb", "ring", "tower-layer", "tower-service"] }
default = http1, max-allowed…body-size-medium

These default features are set whenever authzen-service-util is added without default-features = false somewhere in the dependency tree.

axum-05

Enables axum ^0.5 and headers, axum-core-02 of authzen-session

Affects server::body_bytes

axum-06

Enables axum ^0.6 and headers, axum-core-03 of authzen-session

Affects server::body_bytes

client = async-trait, concat-string, futures, serde, serde_json, serde_qs, trace

Enables client of hyper ^0

hyper:

Client/Server

db = authzen-diesel, diesel, serde
graphql = async-graphql, authzen-diesel, diesel, serde

Affects server::missing_session, server::missing_data

grpc = tonic
http1 default

Enables http1 of hyper ^0

hyper:

HTTP versions

http2

Enables http2 of hyper ^0

log_error max-allowed-request-body-size-large
max-allowed-request-body-size-medium default
max-allowed-request-body-size-small
server = authzen-session, derive_more, futures, serde, serde_json, tokio, tower, trace, try-join-safe, uuid

Enables rt-tokio of opentelemetry, macros of tokio, timeout of tower, request-id of tower-http

trace client? server? = opentelemetry, tracing-error, tracing-log, tracing-opentelemetry, tracing-subscriber, tracing-tree, uuid

Enables rt-tokio of opentelemetry-jaeger

try-join-safe server? = futures

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.

authzen-diesel db? graphql?
authzen-session axum-05? axum-06? server?
async-graphql graphql?

Enables async-graphql ^4

async-trait client?
axum-core implicit feature

Enables axum-core

axum-core:

Core types and traits for axum

concat-string client?
data-encoding implicit feature

Enables data-encoding

data-encoding:

Efficient and customizable data-encoding functions like base64, base32, and hex

derive_more server?

Enables derive_more ^0

diesel db? graphql?
futures client? server? try-join-safe?
mongodb implicit feature

Enables mongodb ^2

mongodb:

The official MongoDB driver for Rust

opentelemetry server? trace?
opentelemetry-jaeger trace?
ring implicit feature

Enables ring

ring:

Safe, fast, small crypto using Rust

serde client? db? graphql? server?
serde_json client? server?
serde_qs client?
tonic grpc?
tokio server?
tower server?
tower-layer implicit feature

Enables tower-layer

tower-layer:

Decorates a Service to allow easy composition between Services

tower-service implicit feature

Enables tower-service

tower-service:

Trait representing an asynchronous, request / response based, client or server

tracing-error trace?
tracing-log trace?
tracing-opentelemetry trace?
tracing-subscriber trace?
tracing-tree trace?
uuid server? trace?