Cargo Features

[dependencies]
golem-common = { version = "1.1.8", default-features = false, features = ["config", "observability", "poem", "protobuf", "redis", "sql", "tokio"] }
default = config, observability, poem, protobuf, redis, sql, tokio

These default features are set whenever golem-common is added without default-features = false somewhere in the dependency tree.

config default

Enables figment

Affects golem-common::config

observability default

Enables console-subscriber, prometheus, tracing, tracing-serde, and tracing-subscriber

Affects golem-common::metrics, golem-common::tracing

poem default

Enables poem and poem-openapi, poem_openapi of golem-wasm-ast and golem-rib

TODO: make these optionals

Affects golem-common::json_yaml, model::PoemTypeRequirements

protobuf default

Enables golem-api-grpc and golem-rib, prost, prost-types, and tonic, protobuf of golem-wasm-ast and golem-wasm-rpc

Affects golem-common::client, golem-common::grpc, model::protobuf

redis default

Enables fred =9.4.0

Affects golem-common::redis

sql default

Enables sqlx

Affects golem-common::repo, plugin::PluginInstallationTarget.table_name

tokio default

Enables tokio

Affects golem-common::cache, golem-common::retries