Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
ci/ | H | 03-May-2022 | - | 42 | 23 | |
src/ | H | 03-May-2022 | - | 1,928 | 1,571 | |
.cargo-checksum.json | H A D | 03-May-2022 | 89 | 1 | 1 | |
.gitignore | H A D | 18-Dec-2017 | 18 | 3 | 2 | |
.travis.yml | H A D | 18-Jun-2018 | 258 | 21 | 20 | |
Cargo.toml | H A D | 01-Jan-1970 | 1.5 KiB | 52 | 46 | |
Cargo.toml.orig-cargo | H A D | 23-Jun-2018 | 1.1 KiB | 44 | 36 | |
LICENSE-APACHE | H A D | 18-Dec-2017 | 10.6 KiB | 202 | 169 | |
LICENSE-MIT | H A D | 18-Dec-2017 | 1 KiB | 26 | 22 | |
README.md | H A D | 18-Jun-2018 | 1.2 KiB | 47 | 31 | |
RELEASES.md | H A D | 23-Jun-2018 | 2.4 KiB | 64 | 44 | |
bors.toml | H A D | 18-Dec-2017 | 56 | 4 | 3 | |
build.rs | H A D | 18-Jun-2018 | 929 | 36 | 29 |
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