|
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 | +name = "num" |
| 9 | +repository = "https://github.com/rust-num/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 |
| -[dependencies.num-traits] |
22 |
| -path = "./traits" |
| 21 | +[dependencies.num-bigint] |
| 22 | +optional = false |
| 23 | +path = "bigint" |
23 | 24 |
|
24 | 25 | [dependencies.num-integer]
|
25 | 26 | path = "./integer"
|
26 | 27 |
|
| 28 | +[dependencies.num-traits] |
| 29 | +path = "./traits" |
| 30 | + |
| 31 | +[dependencies.rand] |
| 32 | +optional = true |
| 33 | +version = "0.3.8" |
| 34 | + |
| 35 | +[dependencies.rustc-serialize] |
| 36 | +optional = true |
| 37 | +version = "0.3.13" |
| 38 | + |
| 39 | +[dependencies.serde] |
| 40 | +optional = true |
| 41 | +version = "^0.7.0" |
| 42 | + |
27 | 43 | [dev-dependencies]
|
28 |
| -# Some tests of non-rand functionality still use rand because the tests |
29 |
| -# themselves are randomized. |
30 |
| -rand = { version = "0.3.8" } |
31 | 44 |
|
32 |
| -[features] |
| 45 | +[dev-dependencies.rand] |
| 46 | +version = "0.3.8" |
33 | 47 |
|
34 |
| -complex = [] |
35 |
| -rational = [] |
| 48 | +[features] |
36 | 49 | bigint = []
|
| 50 | +complex = [] |
37 | 51 | default = ["bigint", "complex", "rand", "rational", "rustc-serialize"]
|
38 |
| - |
39 |
| -[[bench]] |
40 |
| -name = "bigint" |
41 |
| - |
42 |
| -[[bench]] |
43 |
| -name = "shootout-pidigits" |
44 |
| -harness = false |
| 52 | +rational = [] |
0 commit comments