# 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.89"
name = "rig-tap"
version = "0.3.0"
authors = ["ForeverAngry"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Backend-agnostic observability event schema and taps for Rig agents (prompt/tool lifecycle + context-size sampling)."
readme = "README.md"
keywords = [
    "rig",
    "observability",
    "telemetry",
    "ai",
    "agent",
]
categories = ["development-tools::debugging"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/ForeverAngry/rig-tap"

[features]
compose = [
    "dep:rig-compose",
    "dep:async-trait",
]
default = []
openai-responses = []
openai-responses-websocket = [
    "openai-responses",
    "rig/websocket",
]
subscriber = ["dep:tracing-subscriber"]

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

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

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

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

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

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

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

[dependencies.rig]
version = "0.37.0"
default-features = false
package = "rig-core"

[dependencies.rig-compose]
version = "0.5"
optional = true

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

[dependencies.serde_json]
version = "1.0.140"

[dependencies.thiserror]
version = "2.0.12"

[dependencies.tracing]
version = "0.1.41"

[dependencies.tracing-subscriber]
version = "0.3"
optional = true
default-features = false

[dev-dependencies.anyhow]
version = "1.0.102"

[dev-dependencies.rig-compose]
version = "0.5"

[dev-dependencies.tokio]
version = "1.51.1"
features = [
    "macros",
    "rt-multi-thread",
]

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

[lints.clippy]
await_holding_lock = "deny"
await_holding_refcell_ref = "deny"
dbg_macro = "forbid"
expect_fun_call = "deny"
expect_used = "deny"
indexing_slicing = "deny"
panic = "deny"
panic_in_result_fn = "deny"
todo = "forbid"
unimplemented = "forbid"
unreachable = "deny"
unwrap_used = "deny"
