• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

ci/H03-May-2022-4223

src/H03-May-2022-1,9281,571

.cargo-checksum.jsonH A D03-May-202289 11

.gitignoreH A D18-Dec-201718 32

.travis.ymlH A D18-Jun-2018258 2120

Cargo.tomlH A D01-Jan-19701.5 KiB5246

Cargo.toml.orig-cargoH A D23-Jun-20181.1 KiB4436

LICENSE-APACHEH A D18-Dec-201710.6 KiB202169

LICENSE-MITH A D18-Dec-20171 KiB2622

README.mdH A D18-Jun-20181.2 KiB4731

RELEASES.mdH A D23-Jun-20182.4 KiB6444

bors.tomlH A D18-Dec-201756 43

build.rsH A D18-Jun-2018929 3629

README.md

1# num-rational
2
3[![crate](https://img.shields.io/crates/v/num-rational.svg)](https://crates.io/crates/num-rational)
4[![documentation](https://docs.rs/num-rational/badge.svg)](https://docs.rs/num-rational)
5![minimum rustc 1.15](https://img.shields.io/badge/rustc-1.15+-red.svg)
6[![Travis status](https://travis-ci.org/rust-num/num-rational.svg?branch=master)](https://travis-ci.org/rust-num/num-rational)
7
8Generic `Rational` numbers for Rust.
9
10## Usage
11
12Add this to your `Cargo.toml`:
13
14```toml
15[dependencies]
16num-rational = "0.2"
17```
18
19and this to your crate root:
20
21```rust
22extern crate num_rational;
23```
24
25## Features
26
27This crate can be used without the standard library (`#![no_std]`) by disabling
28the default `std` feature.  Use this in `Cargo.toml`:
29
30```toml
31[dependencies.num-rational]
32version = "0.2"
33default-features = false
34```
35
36Implementations for `i128` and `u128` are only available with Rust 1.26 and
37later.  The build script automatically detects this, but you can make it
38mandatory by enabling the `i128` crate feature.
39
40## Releases
41
42Release notes are available in [RELEASES.md](RELEASES.md).
43
44## Compatibility
45
46The `num-rational` crate is tested for rustc 1.15 and greater.
47