2018-07-12 00:44:28 -05:00
|
|
|
[package]
|
2018-07-13 19:38:51 -05:00
|
|
|
authors = ["Jorge Aparicio <jorge@japaric.io>"]
|
|
|
|
categories = ["no-std"]
|
|
|
|
description = "libm in pure Rust"
|
|
|
|
documentation = "https://docs.rs/libm"
|
|
|
|
keywords = ["libm", "math"]
|
|
|
|
license = "MIT OR Apache-2.0"
|
2018-07-12 00:44:28 -05:00
|
|
|
name = "libm"
|
2021-03-28 12:24:08 +02:00
|
|
|
readme = "README.md"
|
2019-09-25 11:20:49 -07:00
|
|
|
repository = "https://github.com/rust-lang/libm"
|
2023-10-06 11:25:38 +02:00
|
|
|
version = "0.2.8"
|
2019-05-02 10:48:55 -07:00
|
|
|
edition = "2018"
|
2023-08-03 15:05:28 -04:00
|
|
|
exclude = ["/ci/", "/.github/workflows/"]
|
2018-07-12 00:44:28 -05:00
|
|
|
|
2018-07-25 13:16:10 -05:00
|
|
|
[features]
|
2019-09-05 08:32:26 -06:00
|
|
|
default = []
|
|
|
|
|
2024-03-16 17:55:49 +02:00
|
|
|
checked = []
|
|
|
|
|
2019-09-05 08:32:26 -06:00
|
|
|
# This tells the compiler to assume that a Nightly toolchain is being used and
|
|
|
|
# that it should activate any useful Nightly things accordingly.
|
|
|
|
unstable = []
|
2019-05-02 11:37:21 -07:00
|
|
|
|
|
|
|
# Generate tests which are random inputs and the outputs are calculated with
|
|
|
|
# musl libc.
|
2019-05-02 10:48:55 -07:00
|
|
|
musl-reference-tests = ['rand']
|
2018-07-25 13:16:10 -05:00
|
|
|
|
2024-03-16 17:55:49 +02:00
|
|
|
rustc-dep-of-std = ["core", "compiler_builtins/rustc-dep-of-std"]
|
|
|
|
|
2018-07-12 00:44:28 -05:00
|
|
|
[workspace]
|
2018-07-27 00:11:06 -05:00
|
|
|
members = [
|
2019-05-02 08:12:00 -07:00
|
|
|
"crates/compiler-builtins-smoke-test",
|
2019-07-02 08:22:03 +02:00
|
|
|
"crates/libm-bench",
|
2018-07-27 00:11:06 -05:00
|
|
|
]
|
|
|
|
|
2024-03-16 17:55:49 +02:00
|
|
|
[dependencies]
|
|
|
|
core = { version = "1.0.0", optional = true, package = "rustc-std-workspace-core" }
|
|
|
|
compiler_builtins = { version = "0.1", optional = true }
|
|
|
|
|
2019-05-02 11:37:21 -07:00
|
|
|
[dev-dependencies]
|
|
|
|
no-panic = "0.1.8"
|
|
|
|
|
2019-05-02 10:48:55 -07:00
|
|
|
[build-dependencies]
|
|
|
|
rand = { version = "0.6.5", optional = true }
|
2022-01-03 21:32:08 +01:00
|
|
|
|
|
|
|
# This is needed for no-panic to correctly detect the lack of panics
|
|
|
|
[profile.release]
|
|
|
|
lto = "fat"
|