[package]
edition = "2024"
name = "pot-head"
version = "0.2.1"
authors = ["Esben Dueholm Nørgaard"]
build = false
exclude = [
"examples/",
"tools",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A no_std Rust library for processing raw potmeter inputs in embedded systems"
documentation = "https://docs.rs/pot-head"
readme = "README.md"
keywords = [
"embedded",
"potmeter",
"pot",
"potentiometer",
"no-std",
]
categories = [
"embedded",
"no-std",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/HybridChild/pot-head"
[features]
default = [
"std-math",
"grab-mode",
]
grab-mode = []
moving-average = ["heapless"]
std-math = ["libm"]
[lib]
name = "pot_head"
path = "src/lib.rs"
[[test]]
name = "config_validation"
path = "tests/config_validation.rs"
[[test]]
name = "curves_integration"
path = "tests/curves_integration.rs"
[[test]]
name = "filtering_integration"
path = "tests/filtering_integration.rs"
[[test]]
name = "filters_test"
path = "tests/filters_test.rs"
[[test]]
name = "grab_mode_tests"
path = "tests/grab_mode_tests.rs"
[[test]]
name = "hysteresis_integration"
path = "tests/hysteresis_integration.rs"
[[test]]
name = "hysteresis_unit"
path = "tests/hysteresis_unit.rs"
[[test]]
name = "normalization"
path = "tests/normalization.rs"
[[test]]
name = "snap_zones_integration"
path = "tests/snap_zones_integration.rs"
[dependencies.heapless]
version = "0.9.2"
optional = true
[dependencies.libm]
version = "0.2"
optional = true
[dependencies.num-traits]
version = "0.2"
default-features = false