Cargo Features

shuttle-common has no features set by default.

[dependencies]
shuttle-common = { version = "0.44.0", features = ["axum", "claims", "display", "extract_propagation", "models", "persist", "sqlx", "service", "tonic", "tracing", "test-utils"] }
axum claims?

Enables axum ^0.6.13

claims = axum, bytes, headers, http-body, jsonwebtoken, opentelemetry, opentelemetry-http, pin-project, tower, tracing, tracing-opentelemetry

Enables clock of chrono

Affects shuttle-common::claims, shuttle-common::limits

display service? = comfy-table, crossterm

Enables clock of chrono

Affects log::ColoredLevel, log::format_event

extract_propagation = opentelemetry, opentelemetry-http, pin-project, tower, tracing-opentelemetry

Affects shuttle-common::extract_propagation

models = async-trait, reqwest, service, thiserror

Affects shuttle-common::models

persist = rand, sqlx
sqlx persist?

Enables sqlite of sqlx

service models? = display, tracing, tracing-subscriber, uuid

Enables serde of chrono

Affects shuttle-common::deployment, shuttle-common::DeploymentId, shuttle-common::log

tonic

Enables tonic ^0.10.2

tracing claims? service?

Enables tracing

Affects shuttle-common::tracing

test-utils = wiremock

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.

async-trait models?
bytes claims?
comfy-table display?

Enables comfy-table ^6.2.0

crossterm display?
headers claims?

Enables headers ^0.3.8

http-body claims?

Enables http-body ^0.4.5

jsonwebtoken claims?
opentelemetry claims? extract_propagation?

Enables opentelemetry ^0.21.0

opentelemetry-http claims? extract_propagation?

Enables opentelemetry-http ^0.10.0

pin-project claims? extract_propagation?
rand persist?
reqwest models?

Enables reqwest ^0.11.13

thiserror models?
tower claims? extract_propagation?
tracing-opentelemetry claims? extract_propagation?

Enables tracing-opentelemetry ^0.22.0

tracing-subscriber service?
uuid service?
wiremock test-utils?