Cargo Features

[dependencies]
async-graphql = { version = "7.0.3", default-features = false, features = ["apollo_persisted_queries", "apollo_tracing", "email-validator", "cbor", "chrono-duration", "dataloader", "decimal", "password-strength-validator", "string_number", "tokio-sync", "tracing", "unblock", "dynamic-schema", "graphiql", "playground", "bson", "chrono-tz", "hashbrown", "log", "opentelemetry", "bigdecimal", "secrecy", "smol_str", "time", "url", "uuid", "tempfile"] }
default = email-validator, graphiql, playground, tempfile

These default features are set whenever async-graphql is added without default-features = false somewhere in the dependency tree.

apollo_persisted_queries = lru, sha2

Affects extensions::apollo_persisted_queries

apollo_tracing = chrono
email-validator default = fast_chemail
cbor = serde_cbor

Affects http::receive_cbor, http::receive_batch_cbor

chrono-duration = chrono, iso8601
dataloader = futures-channel, futures-timer, lru

Affects async-graphql::dataloader

decimal = rust_decimal
password-strength-validator = zxcvbn
string_number
tokio-sync = tokio
tracing = tracing-futures, tracinglib
unblock = blocking
dynamic-schema

Affects async-graphql::dynamic

graphiql default = handlebars
playground default

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.

bson implicit feature

Enables bson

Feature optional dependencies

chrono apollo_tracing? chrono-duration?
chrono-tz implicit feature

Enables chrono-tz ^0.6.1

chrono-tz:

TimeZone implementations for chrono from the IANA database

fast_chemail email-validator
hashbrown implicit feature

Enables hashbrown ^0.12.0

hashbrown:

A Rust port of Google's SwissTable hash map

iso8601 chrono-duration?
log implicit feature

Enables log

log:

A lightweight logging facade for Rust

opentelemetry implicit feature

Enables opentelemetry ^0.21.0

opentelemetry:

A metrics collection and distributed tracing framework

rust_decimal decimal?
bigdecimal implicit feature

Enables bigdecimal

bigdecimal:

Arbitrary precision decimal numbers

secrecy implicit feature
smol_str implicit feature

Enables smol_str ^0.1.21

smol_str:

small-string optimized string type with O(1) clone

time implicit feature
tokio tokio-sync?
tracing-futures tracing?
tracinglib tracing?

Enables tracing

url implicit feature

Enables url

url:

URL library for Rust, based on the WHATWG URL Standard

uuid implicit feature

Enables uuid

uuid:

A library to generate and parse UUIDs

tempfile default

Affects upload::UploadValue.content

blocking unblock?

Enables blocking

Non-feature optional dependencies

futures-channel dataloader?
futures-timer dataloader?
lru apollo_persisted_queries? dataloader?

Enables lru ^0.7.1

serde_cbor cbor?
sha2 apollo_persisted_queries?
zxcvbn password-strength-validator?
handlebars graphiql

Enables handlebars ^4.3.6