|
1 | 1 | [package]
|
2 |
| - |
3 |
| -name = "num" |
4 |
| -version = "0.1.31" |
5 | 2 | authors = ["The Rust Project Developers"]
|
6 |
| -license = "MIT/Apache-2.0" |
7 |
| -homepage = "https://github.com/rust-num/num" |
8 |
| -repository = "https://github.com/rust-num/num" |
| 3 | +description = "A collection of numeric types and traits for Rust, including bigint,\ncomplex, rational, range iterators, generic integers, and more!\n" |
9 | 4 | documentation = "http://rust-num.github.io/num"
|
| 5 | +homepage = "https://github.com/rust-num/num" |
10 | 6 | keywords = ["mathematics", "numerics"]
|
11 |
| -description = """ |
12 |
| -A collection of numeric types and traits for Rust, including bigint, |
13 |
| -complex, rational, range iterators, generic integers, and more! |
14 |
| -""" |
| 7 | +license = "MIT/Apache-2.0" |
| 8 | +repository = "https://github.com/rust-num/num" |
| 9 | +name = "num" |
| 10 | +version = "0.1.31" |
| 11 | + |
| 12 | +[[bench]] |
| 13 | +name = "bigint" |
| 14 | + |
| 15 | +[[bench]] |
| 16 | +harness = false |
| 17 | +name = "shootout-pidigits" |
15 | 18 |
|
16 | 19 | [dependencies]
|
17 |
| -rand = { version = "0.3.8", optional = true } |
18 |
| -rustc-serialize = { version = "0.3.13", optional = true } |
19 |
| -serde = { version = "^0.7.0", optional = true } |
20 | 20 |
|
21 |
| -[dev-dependencies] |
22 |
| -# Some tests of non-rand functionality still use rand because the tests |
23 |
| -# themselves are randomized. |
24 |
| -rand = { version = "0.3.8" } |
| 21 | +[dependencies.num-bigint] |
| 22 | +optional = true |
| 23 | +path = "bigint" |
25 | 24 |
|
26 |
| -[features] |
| 25 | +[dependencies.num-complex] |
| 26 | +optional = true |
| 27 | +path = "complex" |
27 | 28 |
|
28 |
| -complex = [] |
29 |
| -rational = [] |
30 |
| -bigint = [] |
31 |
| -default = ["bigint", "complex", "rand", "rational", "rustc-serialize"] |
| 29 | +[dependencies.num-integer] |
| 30 | +path = "./integer" |
32 | 31 |
|
33 |
| -[[bench]] |
34 |
| -name = "bigint" |
| 32 | +[dependencies.num-iter] |
| 33 | +optional = false |
| 34 | +path = "iter" |
35 | 35 |
|
36 |
| -[[bench]] |
37 |
| -name = "shootout-pidigits" |
38 |
| -harness = false |
| 36 | +[dependencies.num-rational] |
| 37 | +optional = true |
| 38 | +path = "rational" |
| 39 | + |
| 40 | +[dependencies.num-traits] |
| 41 | +path = "./traits" |
| 42 | + |
| 43 | +[dev-dependencies] |
| 44 | + |
| 45 | +[dev-dependencies.rand] |
| 46 | +version = "0.3.8" |
| 47 | + |
| 48 | +[features] |
| 49 | +bigint = ["num-bigint"] |
| 50 | +complex = ["num-complex"] |
| 51 | +rational = ["num-rational"] |
| 52 | +default = ["bigint", "complex", "rational", "rustc-serialize"] |
| 53 | + |
| 54 | +serde = [ |
| 55 | + "num-bigint/serde", |
| 56 | + "num-complex/serde", |
| 57 | + "num-rational/serde" |
| 58 | +] |
| 59 | +rustc-serialize = [ |
| 60 | + "num-bigint/rustc-serialize", |
| 61 | + "num-complex/rustc-serialize", |
| 62 | + "num-rational/rustc-serialize" |
| 63 | +] |
0 commit comments