| 1 |
[package] |
| 2 |
authors = ["The Rust Project Developers"] |
| 3 |
description = "Rational numbers implementation for Rust" |
| 4 |
documentation = "https://docs.rs/num-rational" |
| 5 |
homepage = "https://github.com/rust-num/num-rational" |
| 6 |
keywords = ["mathematics", "numerics", "fractions"] |
| 7 |
categories = ["algorithms", "data-structures", "science", "no-std"] |
| 8 |
license = "MIT OR Apache-2.0" |
| 9 |
name = "num-rational" |
| 10 |
repository = "https://github.com/rust-num/num-rational" |
| 11 |
version = "0.4.2" |
| 12 |
readme = "README.md" |
| 13 |
exclude = ["/ci/*", "/.github/*"] |
| 14 |
edition = "2021" |
| 15 |
rust-version = "1.60" |
| 16 |
|
| 17 |
[package.metadata.docs.rs] |
| 18 |
features = ["std", "num-bigint-std", "serde"] |
| 19 |
|
| 20 |
[dependencies] |
| 21 |
|
| 22 |
[dependencies.num-bigint] |
| 23 |
optional = true |
| 24 |
version = "0.4.0" |
| 25 |
default-features = false |
| 26 |
|
| 27 |
[dependencies.num-integer] |
| 28 |
version = "0.1.42" |
| 29 |
default-features = false |
| 30 |
features = ["i128"] |
| 31 |
|
| 32 |
[dependencies.num-traits] |
| 33 |
version = "0.2.18" |
| 34 |
default-features = false |
| 35 |
features = ["i128"] |
| 36 |
|
| 37 |
[dependencies.serde] |
| 38 |
optional = true |
| 39 |
version = "1.0.0" |
| 40 |
default-features = false |
| 41 |
|
| 42 |
[features] |
| 43 |
default = ["num-bigint", "std"] |
| 44 |
std = ["num-bigint?/std", "num-integer/std", "num-traits/std"] |
| 45 |
num-bigint-std = ["num-bigint/std"] |
| 46 |
num-bigint = ["dep:num-bigint"] |
| 47 |
serde = ["dep:serde"] |