[package]
name = "baselines"
version = "0.1.1"
edition = "2024"
rust-version = "1.92"
description = "Baseline correction algorithms for signals, spectra, and images"
license = "MIT OR Apache-2.0"
repository = "https://github.com/Ameyanagi/baselines"
readme = "README.md"
keywords = ["baseline", "spectroscopy", "signal-processing", "whittaker"]
categories = ["algorithms", "science"]
exclude = [
"/.github/**",
"/.githooks/**",
"/.gitignore",
"/benches/**",
"/bindings/**",
"/docs/assets/**",
"/docs/performance/**",
"/scripts/**",
"/tests/**",
]
[workspace]
members = [".", "bindings/python", "bindings/wasm"]
default-members = ["."]
resolver = "3"
[dependencies]
thiserror = "2.0"
faer = { version = "0.24", default-features = false, features = ["std"], optional = true }
rayon = { version = "1.11", optional = true }
cubecl = { version = "0.10", default-features = false, features = ["std"], optional = true }
libm = "0.2"
[dev-dependencies]
approx = "0.5"
criterion = { version = "0.8", default-features = false }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
ruviz = { version = "0.4.18", default-features = false }
[features]
default = ["std"]
std = []
faer = ["dep:faer"]
rayon = ["dep:rayon"]
gpu-wgpu = ["dep:cubecl", "cubecl/wgpu"]
[package.metadata.precommit]
fmt = "cargo fmt --all --check"
clippy = "cargo clippy --workspace --all-targets --all-features -- -D warnings"
test = "cargo test --workspace --all-features"
[package.metadata.docs.rs]
all-features = true
[[bench]]
name = "baseline_workloads"
harness = false