[package]
edition = "2021"
rust-version = "1.82"
name = "rtb-telemetry"
version = "0.6.0"
authors = ["Matt Cockayne <matt@phpboyscout.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust Tool Base — opt-in anonymous usage telemetry with pluggable sinks."
homepage = "https://rtb.phpboyscout.uk"
documentation = "https://rtb.phpboyscout.uk"
readme = "README.md"
keywords = [
"cli",
"framework",
"scaffolding",
"ai",
"mcp",
]
categories = [
"command-line-interface",
"development-tools",
]
license = "MIT"
repository = "https://gitlab.com/phpboyscout/rust-tool-base"
[features]
default = []
remote-sinks = [
"dep:reqwest",
"dep:url",
"dep:secrecy",
"dep:opentelemetry",
"dep:opentelemetry_sdk",
"dep:opentelemetry-otlp",
"dep:tonic",
]
[lib]
name = "rtb_telemetry"
path = "src/lib.rs"
[[test]]
name = "bdd"
path = "tests/bdd.rs"
[[test]]
name = "consent"
path = "tests/consent.rs"
[[test]]
name = "unit"
path = "tests/unit.rs"
[dependencies.async-trait]
version = "0.1"
[dependencies.machine-uid]
version = "0.5"
[dependencies.miette]
version = "7"
features = ["fancy"]
[dependencies.opentelemetry]
version = "0.31"
optional = true
[dependencies.opentelemetry-otlp]
version = "0.31"
features = [
"grpc-tonic",
"http-proto",
"reqwest-client",
"logs",
"trace",
]
optional = true
default-features = false
[dependencies.opentelemetry_sdk]
version = "0.31"
features = ["rt-tokio"]
optional = true
[dependencies.reqwest]
version = "0.12"
features = [
"rustls-tls",
"json",
"stream",
"gzip",
]
optional = true
default-features = false
[dependencies.rtb-redact]
version = "0.6.0"
[dependencies.secrecy]
version = "0.10"
optional = true
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.sha2]
version = "0.10"
[dependencies.thiserror]
version = "2"
[dependencies.time]
version = "0.3"
features = [
"serde",
"formatting",
"parsing",
"macros",
]
[dependencies.tokio]
version = "1.47"
features = ["full"]
[dependencies.toml]
version = "0.8"
[dependencies.tonic]
version = "0.14"
optional = true
[dependencies.url]
version = "2"
optional = true
[dependencies.uuid]
version = "1"
features = [
"v4",
"serde",
]
[dev-dependencies.cucumber]
version = "0.21"
features = ["macros"]
[dev-dependencies.insta]
version = "1"
features = [
"yaml",
"json",
]
[dev-dependencies.tempfile]
version = "3"
[dev-dependencies.wiremock]
version = "0.6"
[lints.clippy]
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
[lints.clippy.cargo]
level = "warn"
priority = -1
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_docs = "warn"
unsafe_code = "deny"