Cargo Features

[dependencies]
apollo-federation-types = { version = "0.15.0", default-features = false, features = ["build", "build_plugin", "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

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.

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