[package] name = "lambert_w" version = "1.0.3" edition = "2021" authors = ["Johanna Sörngård "] categories = ["mathematics", "no-std::no-alloc"] keywords = ["lambert-w", "product-log", "omega-function"] description = "Fast and accurate evaluation of the Lambert W function by the method of T. Fukushima." rust-version = "1.63.0" license = "MIT OR Apache-2.0" repository = "https://github.com/JSorngard/lambert_w" documentation = "https://docs.rs/lambert_w" [dependencies] libm = { version = "0.2", optional = true } [dev-dependencies] approx = { version = "0.5.1", default-features = false } criterion = { version = "0.5.1", features = ["html_reports"] } rand = { version = "0.8.5", default-features = false, features = ["small_rng"] } [features] default = ["libm"] # If the `std` feature is disabled, this feature uses the [`libm`](https://crates.io/crates/libm) crate # to compute square roots and logarithms during function evaluation instead of the standard library. libm = ["dep:libm"] # Use the standard library to compute square roots and logarithms for a potential performance gain. # When this feature is disabled the crate is `no_std` compatible. std = [] [package.metadata.docs.rs] # Document all features. all-features = true [package.metadata.cargo-all-features] always_include_features = ["libm"] [profile.release-lto] inherits = "release" lto = "fat" codegen-units = 1 strip = "symbols" panic = "abort" incremental = false [[bench]] name = "random" harness = false [[bench]] name = "fixed" harness = false