Debian Codegraph @

debian/rust-vendor/libm/README.md

raw
1 # `libm`
2
3 A Rust implementations of the C math library.
4
5 ## Usage
6
7 `libm` provides fallback implementations for Rust's [float math functions] in
8 `core`, and the [`core_float_math`] feature. If what is available suits your
9 needs, there is no need to add `libm` as a dependency.
10
11 If more functionality is needed, this crate can also be used directly:
12
13 ```toml
14 [dependencies]
15 libm = "0.2.11"
16 ```
17
18 [float math functions]: https://doc.rust-lang.org/std/primitive.f32.html
19 [`core_float_math`]: https://github.com/rust-lang/rust/issues/137578
20
21 ## Contributing
22
23 Please check [CONTRIBUTING.md](../CONTRIBUTING.md)
24
25 ## Minimum Rust version policy
26
27 This crate supports rustc 1.63 and newer.
28
29 ## License
30
31 Usage is under the MIT license, available at
32 <https://opensource.org/license/mit>.
33
34 ### Contribution
35
36 Contributions are licensed under both the MIT license and the Apache License,
37 Version 2.0, available at <https://www.apache.org/licenses/LICENSE-2.0>. Unless
38 you explicitly state otherwise, any contribution intentionally submitted for
39 inclusion in the work by you, as defined in the Apache-2.0 license, shall be
40 dual licensed as mentioned, without any additional terms or conditions.
41
42 See [LICENSE.txt](LICENSE.txt) for full details.