Cargo Features

[dependencies]
golem-common = { version = "1.2.2-dev.3", default-features = false, features = ["base-model", "config", "model", "observability", "poem", "protobuf", "redis", "serialization", "sql", "tokio"] }
default = base-model, config, model, observability, poem, protobuf, redis, serialization, sql, tokio

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

base-model default model

Affects golem-common::base_model, golem-common::newtype

config default

Enables figment

Affects golem-common::config

model default = base-model

Enables golem-rib, golem-wasm-ast, and golem-wasm-rpc

golem-rib:

TODO: make these optionals

Affects golem-common::model, golem-common::retriable_error, golem-common::newtype

observability default

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

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

poem default

Enables golem-rib, poem =3.1.6, poem-openapi =5.1.5, and poem-openapi-derive =5.1.4, poem_openapi of golem-wasm-ast

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

protobuf default

Enables golem-api-grpc and golem-rib, prost, prost-types, and tonic ^0.12.3, 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

serialization default

Affects golem-common::serialization

sql default

Enables sqlx

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

tokio default

Enables tokio

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