rust/library/compiler-builtins/libm
Trevor Gross c7eadedd5f Deny warnings in CI
The main crate already has `#![deny(warnings)]`. Set RUSTFLAGS in CI to
enforce this for other crates in the workspace.
2024-05-06 04:51:41 -05:00
..
.github/workflows Deny warnings in CI 2024-05-06 04:51:41 -05:00
ci Deny warnings in CI 2024-05-06 04:51:41 -05:00
crates Deny warnings in CI 2024-05-06 04:51:41 -05:00
src Fix clippy::deprecated_cfg_attr on compiler_builtins 2024-04-30 12:14:55 +08:00
.editorconfig add generic libm helper 2023-01-17 20:41:24 +01:00
.gitignore add newlib support to the test generator 2018-07-27 00:11:06 -05:00
build.rs Deny warnings in CI 2024-05-06 04:51:41 -05:00
Cargo.toml Release 0.2.8 2023-10-06 11:25:38 +02:00
CHANGELOG.md Update CHANGELOG.md (#245) 2020-06-08 09:11:11 -05:00
CONTRIBUTING.md Remove -nursery from urls 2019-09-25 11:20:49 -07:00
LICENSE-APACHE initial commit 2018-07-12 00:44:28 -05:00
LICENSE-MIT initial commit 2018-07-12 00:44:28 -05:00
README.md updated link to musl website 2021-07-09 09:52:08 +05:30

libm

A port of MUSL's libm to Rust.

Goals

The short term goal of this library is to enable math support (e.g. sin, atan2) for the wasm32-unknown-unknown target (cf. rust-lang/compiler-builtins). The longer term goal is to enable math support in the core crate.

Already usable

This crate is on crates.io and can be used today in stable #![no_std] programs.

The API documentation can be found here.

Benchmark

The benchmarks are located in crates/libm-bench and require a nightly Rust toolchain. To run all benchmarks:

cargo +nightly bench --all

Contributing

Please check CONTRIBUTING.md

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.