# 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.70.0" name = "pyo3-tracing-subscriber" version = "0.1.4" build = false autobins = false autoexamples = false autotests = false autobenches = false description = "A Python module for configuring and initializing tracing subscribers from Python." readme = "README.md" keywords = [ "python", "pyo3", "opentelemetry", "tracing", ] categories = [ "development-tools::ffi", "development-tools::profiling", ] license = "Apache-2.0" repository = "https://github.com/rigetti/pyo3-opentelemetry" [lib] name = "pyo3_tracing_subscriber" path = "src/lib.rs" [dependencies.futures-core] version = "0.3.30" [dependencies.handlebars] version = "4.4.0" optional = true [dependencies.opentelemetry] version = "0.25.0" [dependencies.opentelemetry-otlp] version = "0.25.0" features = [ "grpc-tonic", "trace", "tls-roots", ] optional = true [dependencies.opentelemetry-proto] version = "0.25.0" features = ["tonic"] optional = true [dependencies.opentelemetry_sdk] version = "0.25.0" features = [ "rt-tokio", "rt-tokio-current-thread", ] [dependencies.pyo3] version = "0.20.0" features = ["macros"] optional = true [dependencies.pyo3-asyncio] version = "0.20.0" features = [ "tokio-runtime", "tokio-runtime", ] optional = true [dependencies.serde] version = "1.0.145" features = ["derive"] [dependencies.serde_json] version = "1.0.128" [dependencies.thiserror] version = "1.0.57" [dependencies.tokio] version = "1.36.0" features = ["rt-multi-thread"] [dependencies.tonic] version = "0.12.3" features = [ "tls", "tls-roots", ] optional = true [dependencies.tracing] version = "0.1.37" features = ["log"] [dependencies.tracing-opentelemetry] version = "0.26.0" [dependencies.tracing-subscriber] version = "0.3.17" features = [ "env-filter", "fmt", "json", ] [dev-dependencies.rstest] version = "0.17.0" [dev-dependencies.serde_json] version = "1.0.107" [features] default = ["extension-module"] extension-module = [ "pyo3", "pyo3/extension-module", ] layer-otel-otlp = [ "layer-otel-otlp-file", "dep:tonic", ] layer-otel-otlp-file = [ "dep:opentelemetry-otlp", "dep:opentelemetry-proto", ] pyo3 = [ "dep:pyo3", "dep:pyo3-asyncio", ] stubs = ["dep:handlebars"]