# 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 = "owl-logger"
version = "0.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A production-ready, ergonomic logging library for Rust — inspired by Python's xmi_logger, powered by tracing."
readme = "README.md"
keywords = [
    "logging",
    "tracing",
    "logger",
    "structured-logging",
]
categories = ["development-tools::debugging"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/xmi-one/owl-logger"

[package.metadata.docs.rs]
all-features = true

[features]
default = []
otlp = [
    "dep:opentelemetry",
    "dep:opentelemetry_sdk",
    "dep:opentelemetry-otlp",
    "dep:tracing-opentelemetry",
]

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

[[example]]
name = "advanced_features"
path = "examples/advanced_features.rs"

[[example]]
name = "async_context"
path = "examples/async_context.rs"

[[example]]
name = "basic"
path = "examples/basic.rs"

[[example]]
name = "dynamic_level"
path = "examples/dynamic_level.rs"

[[example]]
name = "format"
path = "examples/format.rs"

[[example]]
name = "otlp"
path = "examples/otlp.rs"
required-features = ["otlp"]

[[example]]
name = "panic"
path = "examples/panic.rs"

[[test]]
name = "error_file"
path = "tests/error_file.rs"

[[test]]
name = "json_masking"
path = "tests/json_masking.rs"

[[test]]
name = "span_context"
path = "tests/span_context.rs"

[dependencies.chrono]
version = "0.4"
features = ["clock"]
default-features = false

[dependencies.flate2]
version = "1.0"

[dependencies.opentelemetry]
version = "0.32"
features = ["trace"]
optional = true
default-features = false

[dependencies.opentelemetry-otlp]
version = "0.32"
features = [
    "trace",
    "http-proto",
    "reqwest-blocking-client",
]
optional = true
default-features = false

[dependencies.opentelemetry_sdk]
version = "0.32"
features = ["trace"]
optional = true
default-features = false

[dependencies.owl-logger-macros]
version = "0.2.0"

[dependencies.owo-colors]
version = "4"

[dependencies.serde_json]
version = "1.0"

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-appender]
version = "0.2"

[dependencies.tracing-log]
version = "0.2"

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

[dependencies.tracing-subscriber]
version = "0.3"
features = [
    "env-filter",
    "fmt",
    "json",
    "registry",
]

[dev-dependencies.log]
version = "0.4"

[dev-dependencies.tokio]
version = "1"
features = ["full"]

[dev-dependencies.tracing]
version = "0.1"
