# 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"
rust-version = "1.91"
name = "brainwires-telemetry"
version = "0.9.0"
authors = ["Brainwires"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Unified telemetry — analytics events, billing hooks, SQLite persistence, and cost/usage queries for the Brainwires Agent Framework"
homepage = "https://github.com/Brainwires/brainwires-framework"
readme = "README.md"
keywords = [
    "ai-agents",
    "telemetry",
    "billing",
    "observability",
    "llm",
]
categories = ["development-tools"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/Brainwires/brainwires-framework"
resolver = "2"

[features]
default = ["native"]
native = [
    "sqlite",
    "dep:dirs",
]
sqlite = ["dep:rusqlite"]

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

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

[dependencies.anyhow]
version = "1"

[dependencies.async-trait]
version = "0.1"

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.dirs]
version = "6"
optional = true

[dependencies.rusqlite]
version = "0.38"
features = ["bundled"]
optional = true

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1.43"
features = [
    "full",
    "sync",
    "rt",
    "macros",
]

[dependencies.tracing]
version = "0.1"

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

[dependencies.uuid]
version = "1"
features = [
    "v4",
    "serde",
]

[dev-dependencies.tempfile]
version = "3"

[dev-dependencies.tokio]
version = "1.43"
features = [
    "full",
    "full",
    "test-util",
]
