Cargo Features

[dependencies]
axum-content-negotiation = { version = "0.1.1", default-features = false, features = ["json", "simd-json", "cbor", "default-json", "default-cbor"] }
default = cbor, default-json, simd-json

These default features are set whenever axum-content-negotiation is added without default-features = false somewhere in the dependency tree.

json = serde_json
simd-json default = serde_json

Enables simd-json

cbor default = cbor4ii
default-json default
default-cbor

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.

serde_json json? simd-json
cbor4ii cbor