1[package]
2authors = ["Jorge Aparicio <jorge@japaric.io>"]
3categories = ["no-std"]
4description = "libm in pure Rust"
5documentation = "https://docs.rs/libm"
6keywords = ["libm", "math"]
7license = "MIT OR Apache-2.0"
8name = "libm"
9readme = "README.md"
10repository = "https://github.com/rust-lang/libm"
11version = "0.2.8"
12edition = "2018"
13exclude = ["/ci/", "/.github/workflows/"]
14
15[features]
16default = []
17
18# This tells the compiler to assume that a Nightly toolchain is being used and
19# that it should activate any useful Nightly things accordingly.
20unstable = []
21
22# Generate tests which are random inputs and the outputs are calculated with
23# musl libc.
24musl-reference-tests = ['rand']
25
26[workspace]
27members = [
28 "crates/compiler-builtins-smoke-test",
29 "crates/libm-bench",
30]
31
32[dev-dependencies]
33no-panic = "0.1.8"
34
35[build-dependencies]
36rand = { version = "0.6.5", optional = true }
37
38# This is needed for no-panic to correctly detect the lack of panics
39[profile.release]
40lto = "fat"
41