Cargo Features

[dependencies]
apollo-federation-types = { version = "0.15.1", default-features = false, features = ["build", "build_plugin", "composition", "config", "json_schema"] }
default = build, build_plugin, config

These default features are set whenever apollo-federation-types is added without default-features = false somewhere in the dependency tree.

build default = serde_json

Affects apollo-federation-types::rover

build_plugin default = serde_json

Affects apollo-federation-types::build_plugin

composition = apollo-compiler

Affects apollo-federation-types::composition

config default = log, serde_with, serde_yaml, thiserror, url

Affects apollo-federation-types::config

json_schema = schemars

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.

apollo-compiler composition?

Enables apollo-compiler

only used for composition

schemars json_schema?
log config

Enables log

config-only dependencies

serde_with config
serde_yaml config

Enables serde_yaml ^0.8

thiserror config

Enables thiserror ^1

url config
serde_json build build_plugin

Enables serde_json

build-only dependencies