commit | 91223b10b41a03ebc83175176ed51ab12d05ec6c | [log] [tgz] |
---|---|---|
author | James Farrell <[email protected]> | Wed May 22 23:28:06 2024 +0000 |
committer | Automerger Merge Worker <[email protected]> | Wed May 22 23:28:06 2024 +0000 |
tree | d2320ecc18d2c21619ccc5adcc9431827bf43e49 | |
parent | 9b13299e854f822306861867a386a284b81d67e0 [diff] | |
parent | ad1a5cab6daf10174b3ac3d886129d1ed4e9ce55 [diff] |
Update Android.bp by running cargo_embargo am: e5d0014ae1 am: ad1a5cab6d Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/num-integer/+/3092178 Change-Id: I501714ec134c3e83d2d9dc3e03e44152efb37d78 Signed-off-by: Automerger Merge Worker <[email protected]>
Integer
trait and functions for Rust.
Add this to your Cargo.toml
:
[dependencies] num-integer = "0.1"
and this to your crate root:
extern crate num_integer;
This crate can be used without the standard library (#![no_std]
) by disabling the default std
feature. Use this in Cargo.toml
:
[dependencies.num-integer] version = "0.1.36" default-features = false
There is no functional difference with and without std
at this time, but there may be in the future.
Implementations for i128
and u128
are only available with Rust 1.26 and later. The build script automatically detects this, but you can make it mandatory by enabling the i128
crate feature.
Release notes are available in RELEASES.md.
The num-integer
crate is tested for rustc 1.8 and greater.
Licensed under either of
at your option.
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.