-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
52 lines (44 loc) · 1.53 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
[package]
name = "lambert_w"
version = "1.0.4"
edition = "2021"
authors = ["Johanna Sörngård <jsorngard@gmail.com>"]
categories = ["mathematics", "no-std", "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