tag | cabfad13b47be98451d7633c79426ffa9de24f1a | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Wed Feb 16 00:50:39 2022 -0800 |
object | 8839d01e0a31db63ef4f83dac84c06026a07a67b |
Android Mainline 12.0.0 Release 42 (7924123,com.google.android.art)
commit | 8839d01e0a31db63ef4f83dac84c06026a07a67b | [log] [tgz] |
---|---|---|
author | Bob Badour <bbadour@google.com> | Wed Feb 17 19:41:33 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Wed Feb 17 19:41:33 2021 +0000 |
tree | b848290708fb637982cdf87d4a2f6d5d4d26afb4 | |
parent | 2f5c3b80630126b38e9902a3a64144836982c784 [diff] | |
parent | d17be9ac2a88c53df1e72c251aeac220bf13992d [diff] |
[LSC] Add LOCAL_LICENSE_KINDS to external/rust/crates/num-integer am: d189262964 am: c70da5da49 am: 4b9f14cd7c am: d17be9ac2a Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/num-integer/+/1588792 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I5cffb11a786e39daeff30a38f6dd0929b1ad34bd
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.