pharia-common 0.4.1

Common utilities for Rust services deployed as part of Pharia AI
Documentation
# 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 = "2024"
name = "pharia-common"
version = "0.4.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Common utilities for Rust services deployed as part of Pharia AI"
documentation = "https://docs.rs/pharia-common"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/Aleph-Alpha/pharia-common-rs"

[features]
opentelemetry = [
    "dep:reqwest-tracing",
    "dep:opentelemetry",
    "dep:tracing",
    "dep:tracing-opentelemetry",
]

[lib]
name = "pharia_common"
path = "src/lib.rs"

[dependencies.anyhow]
version = "1.0.99"

[dependencies.opentelemetry]
version = "0.31.0"
optional = true

[dependencies.reqwest]
version = "0.12.23"
features = [
    "json",
    "rustls-tls-native-roots",
    "http2",
]

[dependencies.reqwest-middleware]
version = "0.4.2"
features = [
    "rustls-tls",
    "json",
    "http2",
]

[dependencies.reqwest-tracing]
version = "0.5.8"
features = ["opentelemetry_0_30"]
optional = true

[dependencies.serde]
version = "1.0.219"
features = ["derive"]

[dependencies.serde_json]
version = "1.0.143"

[dependencies.thiserror]
version = "2.0.16"

[dependencies.tracing]
version = "0.1.41"
optional = true

[dependencies.tracing-opentelemetry]
version = "0.32.0"
optional = true

[dev-dependencies.dotenvy]
version = "0.15.7"

[dev-dependencies.opentelemetry_sdk]
version = "0.31.0"

[dev-dependencies.reqwest-vcr]
version = "0.3.0"

[dev-dependencies.tokio]
version = "1.47.1"
features = [
    "macros",
    "test-util",
]

[dev-dependencies.tracing-subscriber]
version = "0.3.20"