Cargo Features

slog = { version = "2.8.0-beta.1", default-features = false, features = ["std", "nested-values", "max_level_off", "max_level_info", "max_level_trace", "release_max_level_error", "release_max_level_info", "release_max_level_trace"] }
default = std

The std feature is set by default whenever slog is added without default-features = false somewhere in the dependency tree.

std default

Affects slog::MutexDrainError, slog::Serializer.emit_error, slog::ErrorValue, slog::Error

nested-values = erased-serde, serde, serde_derive

Affects slog::Serializer.emit_serde, slog::SerdeValue, slog::Serde

dynamic-keys nothreads max_level_off
max_level_error max_level_warn max_level_info
max_level_debug max_level_trace
release_max_level_off release_max_level_error
release_max_level_warn release_max_level_info
release_max_level_debug release_max_level_trace

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

erased-serde nested-values?

With default (std)

serde nested-values?

With default (std)

serde_derive nested-values?