# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "pot-head"
version = "0.1.0"
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 potentiometer inputs with filters, curves, and response modes"
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
