[package]
edition = "2024"
rust-version = "1.85"
name = "nanoexpr"
version = "0.1.0"
authors = ["Alix ANNERAUD <alix@anneraud.fr>"]
build = false
include = [
"/src",
"/tests",
"/README.md",
"/LICENSE",
"/CHANGELOG.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Fast no_std math expression parser and evaluator with zero heap allocation: formulas with variables and functions for microcontrollers, WebAssembly and C, in f32, f64, integers or calculator-exact decimals"
homepage = "https://github.com/AlixANNERAUD/nanoexpr"
documentation = "https://docs.rs/nanoexpr"
readme = "README.md"
keywords = [
"math",
"expression",
"calculator",
"no-std",
"embedded",
]
categories = [
"embedded",
"no-std",
"no-std::no-alloc",
"mathematics",
"parser-implementations",
]
license = "MIT"
repository = "https://github.com/AlixANNERAUD/nanoexpr"
[package.metadata.docs.rs]
all-features = true
[features]
decimal = ["libm"]
default = ["libm"]
libm = ["dep:libm"]
[lib]
name = "nanoexpr"
path = "src/lib.rs"
[[test]]
name = "allocation"
path = "tests/allocation.rs"
[[test]]
name = "decimal"
path = "tests/decimal.rs"
[[test]]
name = "error"
path = "tests/error.rs"
[[test]]
name = "evaluate"
path = "tests/evaluate.rs"
[[test]]
name = "math"
path = "tests/math.rs"
[dependencies.libm]
version = "0.2"
optional = true