commit | 931ef4786e46b9a7830d2c8753602035b7211d06 | [log] [tgz] |
---|---|---|
author | Andy Quan <[email protected]> | Fri Jun 02 14:50:00 2023 -0700 |
committer | Andy Quan <[email protected]> | Fri Jun 02 14:50:00 2023 -0700 |
tree | 22333ebd5c671829e9cd1d88d627a14216567329 | |
parent | 4b7e51c46c9316f768aeab72034e09659a648e4a [diff] | |
parent | 71a7cf7eabd3c07372e3de2be1e3bd5e62bbc0ce [diff] |
DO NOT MERGE - Merge tm-qpr3-release TQ3A.230605.010 into tm-platform-merge Bug: 279962103 Change-Id: I024af1d6d8df58e3c38008b266b8abd4e3cd069c
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.