[package]
edition = "2024"
rust-version = "1.85"
name = "stackler"
version = "0.1.0"
authors = ["ljedrz <ljedrz@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A lightweight, always-on stack telemetry library that requires no instrumentation."
homepage = "https://github.com/ljedrz/stackler"
documentation = "https://docs.rs/stackler"
readme = "README.md"
keywords = [
"stack",
"watermark",
"telemetry",
"profiling",
"no_std",
]
categories = [
"development-tools::profiling",
"development-tools::debugging",
"no-std",
]
license = "CC0-1.0 OR MIT"
repository = "https://github.com/ljedrz/stackler"
[package.metadata.docs.rs]
all-features = true
[features]
default = ["std"]
fmt = [
"std",
"dep:humansize",
"dep:num-format",
]
full = [
"std",
"fmt",
"serde",
"watermark",
"histograms",
"sampler",
]
histograms = []
hook_pthread = ["std"]
sampler = [
"std",
"watermark",
]
serde = ["dep:serde"]
std = ["dep:libc"]
watermark = []
[lib]
name = "stackler"
path = "src/lib.rs"
[[example]]
name = "pool"
path = "examples/pool.rs"
required-features = ["full"]
[[test]]
name = "basics"
path = "tests/basics.rs"
[[test]]
name = "integration"
path = "tests/integration.rs"
[[test]]
name = "main_thread"
path = "tests/main_thread.rs"
harness = false
[[test]]
name = "primitives"
path = "tests/primitives.rs"
[[bench]]
name = "sampling"
path = "benches/sampling.rs"
harness = false
[dependencies.humansize]
version = "2"
optional = true
[dependencies.num-format]
version = "0.4"
optional = true
[dependencies.portable-atomic]
version = "1"
features = ["fallback"]
default-features = false
[dependencies.serde]
version = "1"
features = ["derive"]
optional = true
default-features = false
[dev-dependencies.divan]
version = "0.1"
[dev-dependencies.libc]
version = "0.2"
[dev-dependencies.serde_json]
version = "1"
[target."cfg(unix)".dependencies.libc]
version = "0.2"
optional = true