tracing-prof 0.3.0

Experimental library for profiling tracing spans.
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.86"
name = "tracing-prof"
version = "0.3.0"
authors = ["tamasfe <me@tamasfe.dev>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Experimental library for profiling tracing spans."
readme = "README.md"
license = "MIT OR Apache-2.0"
resolver = "2"

[features]
default = ["performant"]
performant = [
    "dep:minstant",
    "dep:ahash",
]
pprof = [
    "dep:prost",
    "dep:flate2",
]
pyroscope = [
    "pprof",
    "dep:reqwest",
]
sampler-probabilistic = ["dep:rand"]

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

[[example]]
name = "pyroscope"
path = "examples/pyroscope.rs"
required-features = [
    "pyroscope",
    "sampler-probabilistic",
]

[[bench]]
name = "baseline"
path = "benches/baseline.rs"
harness = false

[[bench]]
name = "tracking"
path = "benches/tracking.rs"
harness = false

[dependencies.ahash]
version = "0.8.11"
optional = true

[dependencies.crossbeam-queue]
version = "0.3.0"

[dependencies.flate2]
version = "1.1.1"
optional = true

[dependencies.heapless]
version = "0.8.0"

[dependencies.indexmap]
version = "2.9.0"

[dependencies.libc]
version = "0.2.172"

[dependencies.minstant]
version = "0.1.7"
optional = true

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

[dependencies.rand]
version = "0.9.1"
optional = true

[dependencies.reqwest]
version = "0.12.15"
features = [
    "blocking",
    "multipart",
]
optional = true

[dependencies.tracing]
version = "0.1"

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

[dependencies.tracing-subscriber]
version = "0.3"

[dev-dependencies.divan]
version = "0.1.21"

[dev-dependencies.tracing-subscriber]
version = "0.3.19"
features = ["env-filter"]

[lints.clippy]
default_trait_access = "allow"
empty_docs = "allow"
ignored_unit_patterns = "allow"
map_unwrap_or = "allow"
match_wildcard_for_single_variants = "allow"
missing_errors_doc = "allow"
module_name_repetitions = "allow"
needless_pass_by_value = "allow"
needless_raw_string_hashes = "allow"
no_effect_underscore_binding = "allow"
ref_option_ref = "allow"
should_panic_without_expect = "allow"
similar_names = "allow"
single_match = "allow"
single_match_else = "allow"
struct_excessive_bools = "allow"
too_many_arguments = "allow"
too_many_lines = "allow"
type_repetition_in_bounds = "allow"
undocumented_unsafe_blocks = "warn"

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
missing_docs = "warn"