fast-telemetry 0.3.0

High-performance, cache-friendly telemetry primitives and export formats for Rust
Documentation
# 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.85"
name = "fast-telemetry"
version = "0.3.0"
authors = [
    "Ryan Daum <ryan.daum@gmail.com>",
    "Devon Tietjen <devon@eden.dev>",
    "Mitul Dhawan <mitul@eden.dev>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "High-performance, cache-friendly telemetry primitives and export formats for Rust"
homepage = "https://github.com/eden-dev-inc/fast-telemetry"
documentation = "https://docs.rs/fast-telemetry"
readme = "README.md"
keywords = [
    "telemetry",
    "metrics",
    "tracing",
    "otlp",
    "performance",
]
license = "Apache-2.0"
repository = "https://github.com/eden-dev-inc/fast-telemetry"

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

[features]
bench-tools = [
    "dep:libc",
    "dep:metrics",
    "dep:metrics-util",
    "dep:opentelemetry",
    "dep:opentelemetry_sdk",
]
clickhouse = [
    "dep:indexmap",
    "dep:klickhouse",
]
default = ["macros"]
eviction = []
macros = ["dep:fast-telemetry-macros"]
otlp = [
    "dep:opentelemetry-proto",
    "dep:prost",
]
shuttle-tests = ["dep:shuttle"]

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

[[bin]]
name = "bench_cache_contention"
path = "src/bin/bench_cache_contention.rs"

[[bin]]
name = "bench_dynamic_series"
path = "src/bin/bench_dynamic_series.rs"
required-features = ["eviction"]

[[bin]]
name = "bench_span_contention"
path = "src/bin/bench_span_contention.rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[[bench]]
name = "fast_vs_otel"
path = "benches/fast_vs_otel.rs"
harness = false
required-features = ["otlp"]

[dependencies.crossbeam-utils]
version = "0.8"

[dependencies.fast-telemetry-macros]
version = "0.3.0"
optional = true

[dependencies.indexmap]
version = "2"
optional = true

[dependencies.itoa]
version = "1"

[dependencies.klickhouse]
version = "0.14"
features = [
    "derive",
    "compression",
]
optional = true
default-features = false

[dependencies.libc]
version = "0.2"
optional = true

[dependencies.metrics]
version = "0.24.3"
optional = true

[dependencies.metrics-util]
version = "0.20.1"
features = [
    "registry",
    "storage",
]
optional = true

[dependencies.opentelemetry]
version = "0.31"
optional = true

[dependencies.opentelemetry-proto]
version = "0.30"
features = [
    "gen-tonic",
    "gen-tonic-messages",
    "metrics",
    "trace",
]
optional = true
default-features = false

[dependencies.opentelemetry_sdk]
version = "0.31"
features = [
    "rt-tokio",
    "testing",
]
optional = true

[dependencies.parking_lot]
version = "0.12"

[dependencies.prost]
version = "0.13"
optional = true

[dependencies.ryu]
version = "1"

[dependencies.shuttle]
version = "0.8"
optional = true

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

[dev-dependencies.criterion]
version = "0.8"
features = [
    "async_tokio",
    "html_reports",
]

[dev-dependencies.flate2]
version = "1"

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

[dev-dependencies.opentelemetry]
version = "0.31"

[dev-dependencies.opentelemetry_sdk]
version = "0.31"
features = [
    "rt-tokio",
    "testing",
]

[dev-dependencies.statsd-parser]
version = "0.3"