# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" rust-version = "1.78" name = "shuttle-common" version = "0.49.0" description = "Common library for the shuttle platform (https://www.shuttle.rs/)" license = "Apache-2.0" repository = "https://github.com/shuttle-hq/shuttle" [dependencies.anyhow] version = "1.0.66" [dependencies.async-trait] version = "0.1.58" optional = true [dependencies.axum] version = "0.6.13" features = ["json"] optional = true default-features = false [dependencies.bytes] version = "1.3.0" optional = true [dependencies.chrono] version = "0.4.34" default-features = false [dependencies.comfy-table] version = "6.2.0" optional = true [dependencies.crossterm] version = "0.27.0" optional = true [dependencies.headers] version = "0.3.8" optional = true [dependencies.http] version = "0.2.8" [dependencies.http-body] version = "0.4.5" optional = true [dependencies.jsonwebtoken] version = "9.0.0" optional = true [dependencies.opentelemetry] version = "0.21.0" optional = true [dependencies.opentelemetry-http] version = "0.10.0" optional = true [dependencies.pin-project] version = "1.0.12" optional = true [dependencies.rand] version = "0.8.5" optional = true [dependencies.reqwest] version = "0.11.13" features = ["rustls-tls"] optional = true default-features = false [dependencies.semver] version = "1.0.17" features = ["serde"] [dependencies.serde] version = "1.0.148" features = [ "derive", "std", ] default-features = false [dependencies.serde_json] version = "1.0.89" [dependencies.sqlx] version = "0.7.1" features = [ "runtime-tokio", "tls-rustls", ] optional = true [dependencies.strum] version = "0.26.1" features = [ "derive", "derive", ] [dependencies.thiserror] version = "2" [dependencies.tonic] version = "0.10.2" optional = true [dependencies.tower] version = "0.4.13" optional = true [dependencies.tracing] version = "0.1.37" features = ["std"] optional = true default-features = false [dependencies.tracing-opentelemetry] version = "0.22.0" optional = true [dependencies.tracing-subscriber] version = "0.3.16" features = [ "registry", "json", ] optional = true default-features = false [dependencies.typeshare] version = "1.0.3" [dependencies.url] version = "=2.5.2" features = ["serde"] [dependencies.uuid] version = "1.2.2" features = [ "v4", "serde", ] optional = true [dependencies.wiremock] version = "0.6.0" optional = true [dependencies.zeroize] version = "1.6.0" [dev-dependencies.proptest] version = "1.1.0" [features] axum = ["dep:axum"] claims = [ "axum", "bytes", "chrono/clock", "headers", "http-body", "jsonwebtoken", "models", "opentelemetry", "opentelemetry-http", "pin-project", "tower", "tracing", "tracing-opentelemetry", ] display = [ "chrono/clock", "comfy-table", "crossterm", ] extract_propagation = [ "opentelemetry", "opentelemetry-http", "pin-project", "tower", "tracing-opentelemetry", ] models = [ "async-trait", "reqwest", "service", ] persist = [ "sqlx", "rand", ] service = [ "chrono/serde", "display", "tracing", "tracing-subscriber", "uuid", ] sqlx = [ "dep:sqlx", "sqlx/sqlite", "sqlx/postgres", ] test-utils = ["wiremock"] tonic = ["dep:tonic"] tracing = ["dep:tracing"]