[package]
edition = "2024"
rust-version = "1.94"
name = "nexus-stats"
version = "6.0.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Fixed-memory, zero-allocation streaming statistics for real-time systems"
readme = "README.md"
keywords = [
"lock-free",
"concurrent",
"data-structures",
"trading",
]
categories = [
"concurrency",
"data-structures",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/Abso1ut3Zer0/nexus"
resolver = "2"
[package.metadata.docs.rs]
all-features = true
[features]
alloc = [
"nexus-stats-core/alloc",
"nexus-stats-smoothing?/alloc",
"nexus-stats-detection?/alloc",
"nexus-stats-regression?/alloc",
"nexus-stats-control?/alloc",
]
control = ["dep:nexus-stats-control"]
default = ["std"]
detection = [
"dep:nexus-stats-detection",
"smoothing",
]
full = [
"smoothing",
"detection",
"regression",
"control",
]
libm = [
"nexus-stats-core/libm",
"nexus-stats-detection?/libm",
"nexus-stats-regression?/libm",
"nexus-stats-control?/libm",
]
regression = ["dep:nexus-stats-regression"]
smoothing = ["dep:nexus-stats-smoothing"]
std = [
"alloc",
"nexus-stats-core/std",
"nexus-stats-smoothing?/std",
"nexus-stats-detection?/std",
"nexus-stats-regression?/std",
"nexus-stats-control?/std",
]
[lib]
name = "nexus_stats"
path = "src/lib.rs"
[[example]]
name = "basic"
path = "examples/basic.rs"
required-features = ["std"]
[[example]]
name = "perf_stats"
path = "examples/perf_stats.rs"
required-features = [
"std",
"full",
]
[[test]]
name = "compile_tests"
path = "tests/compile_tests.rs"
[[bench]]
name = "update_bench"
path = "benches/update_bench.rs"
harness = false
required-features = ["full"]
[dependencies.nexus-stats-control]
version = "2.0.0"
optional = true
default-features = false
[dependencies.nexus-stats-core]
version = "3.0.1"
default-features = false
[dependencies.nexus-stats-detection]
version = "2.0.0"
optional = true
default-features = false
[dependencies.nexus-stats-regression]
version = "2.0.0"
optional = true
default-features = false
[dependencies.nexus-stats-smoothing]
version = "2.0.0"
optional = true
default-features = false
[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]
[lints.clippy]
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_ptr_alignment = "allow"
cast_sign_loss = "allow"
cognitive_complexity = "allow"
doc_markdown = "allow"
float_cmp = "allow"
future_not_send = "allow"
ignore_without_reason = "allow"
inline_always = "allow"
items_after_statements = "allow"
manual_range_contains = "allow"
missing_const_for_fn = "allow"
missing_errors_doc = "allow"
missing_fields_in_debug = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_range_loop = "allow"
ptr_as_ptr = "allow"
redundant_locals = "allow"
redundant_pub_crate = "allow"
ref_as_ptr = "allow"
ref_option = "allow"
return_self_not_must_use = "allow"
semicolon_if_nothing_returned = "allow"
significant_drop_tightening = "allow"
similar_names = "allow"
too_many_lines = "allow"
uninlined_format_args = "allow"
use_self = "allow"
used_underscore_binding = "allow"
wildcard_imports = "allow"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
unsafe_op_in_unsafe_fn = "warn"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(loom)"]