Generic Rational numbers for Rust
Clone or download
bors[bot] and cuviper Merge #36
36: Run cargo fmt r=cuviper a=cuviper



Co-authored-by: Josh Stone <cuviper@gmail.com>
Latest commit 5e04dfc Jul 13, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ci Add support for 128-bit integers Jun 16, 2018
src Run cargo fmt Jul 13, 2018
.gitignore Update num-macros to Rust master May 14, 2015
.travis.yml Add support for 128-bit integers Jun 16, 2018
Cargo.toml Release 0.2.1 Jun 22, 2018
LICENSE-APACHE Initial seeding from rust repo Sep 16, 2014
LICENSE-MIT Initial seeding from rust repo Sep 16, 2014
README.md Add support for 128-bit integers Jun 16, 2018
RELEASES.md Fix typo Jul 4, 2018
bors.toml Enable bors-ng Jul 9, 2017
build.rs Add support for 128-bit integers Jun 16, 2018

README.md

num-rational

crate documentation minimum rustc 1.15 Travis status

Generic Rational numbers for Rust.

Usage

Add this to your Cargo.toml:

[dependencies]
num-rational = "0.2"

and this to your crate root:

extern crate num_rational;

Features

This crate can be used without the standard library (#![no_std]) by disabling the default std feature. Use this in Cargo.toml:

[dependencies.num-rational]
version = "0.2"
default-features = false

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.

Releases

Release notes are available in RELEASES.md.

Compatibility

The num-rational crate is tested for rustc 1.15 and greater.