[package]
edition = "2024"
rust-version = "1.95"
name = "sliding-quantile"
version = "0.1.0"
authors = ["Tim Wiechers <mail@timwie.dev>"]
build = false
exclude = [
".cargo/",
".gitignore",
".rustfmt.toml",
"Justfile",
"tests.rs",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Moving quantile over a sliding window of size N with O(1) queries, O(log N) updates, and O(N) memory."
documentation = "https://docs.rs/sliding-quantile/"
readme = "README.md"
keywords = [
"metrics",
"moving",
"percentile",
"quantile",
"statistics",
]
categories = [
"algorithms",
"mathematics",
"no-std::no-alloc",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/timwie/sliding-quantile"
[features]
alloc = []
default = ["std"]
libm = ["num-traits/libm"]
std = ["num-traits/std"]
[lib]
name = "sliding_quantile"
path = "src/lib.rs"
[dependencies.num-traits]
version = "^0.2"
default-features = false
[dev-dependencies.half]
version = "^2"
features = ["num-traits"]
[dev-dependencies.proptest]
version = "^1"
[dev-dependencies.rand]
version = "^0.10"
[lints.clippy]
absolute_paths = "allow"
arbitrary_source_item_ordering = "allow"
arithmetic_side_effects = "allow"
blanket_clippy_restriction_lints = "allow"
float_arithmetic = "allow"
implicit_return = "allow"
inline_always = "allow"
integer_division = "allow"
integer_division_remainder_used = "allow"
min_ident_chars = "allow"
missing_docs_in_private_items = "allow"
missing_inline_in_public_items = "allow"
missing_panics_doc = "allow"
mod_module_files = "allow"
pub_use = "allow"
separated_literal_suffix = "allow"
shadow_reuse = "allow"
unreachable = "allow"
unwrap_used = "warn"
[lints.clippy.all]
level = "deny"
priority = -1
[lints.clippy.cargo]
level = "deny"
priority = -1
[lints.clippy.pedantic]
level = "deny"
priority = -1
[lints.clippy.restriction]
level = "deny"
priority = -1
[lints.rust]
elided_lifetimes_in_paths = "deny"
legacy_derive_helpers = "deny"
unknown_lints = "deny"
unreachable_pub = "deny"
unsafe_code = "allow"
unused_crate_dependencies = "deny"
unused_imports = "deny"
unused_mut = "deny"
unused_variables = "deny"
[lints.rust.unexpected_cfgs]
level = "deny"
priority = 0
[lints.rustdoc]
bare_urls = "deny"
broken_intra_doc_links = "deny"
invalid_codeblock_attributes = "deny"
invalid_rust_codeblocks = "deny"
missing_crate_level_docs = "deny"
private_intra_doc_links = "deny"