Cargo Features

[dependencies]
af-lib = { version = "0.1.1", default-features = false, features = ["logger", "postgres", "sentry", "slack", "test-runner", "tokio"] }
default = logger

The logger feature is set by default whenever af-lib is added without default-features = false somewhere in the dependency tree.

logger default

Enables logger of af-core

postgres = af-postgres

Affects af-lib::postgres

sentry = af-sentry

Affects af-lib::sentry

slack = af-slack

Affects af-lib::slack

test-runner

Enables test-runner of af-core

tokio

Enables tokio of af-core

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.

af-postgres postgres?
af-sentry sentry?
af-slack slack?