Skip to content

Commit 2176b70

Browse files
committed
Extract bigint
1 parent f1a8085 commit 2176b70

File tree

6 files changed

+5228
-54
lines changed

6 files changed

+5228
-54
lines changed

Cargo.toml

+36-28
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,52 @@
11
[package]
2-
3-
name = "num"
4-
version = "0.1.31"
52
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"
94
documentation = "http://rust-num.github.io/num"
5+
homepage = "https://github.com/rust-num/num"
106
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"
1518

1619
[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 }
2020

21-
[dependencies.num-traits]
22-
path = "./traits"
21+
[dependencies.num-bigint]
22+
optional = false
23+
path = "bigint"
2324

2425
[dependencies.num-integer]
2526
path = "./integer"
2627

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+
2743
[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" }
3144

32-
[features]
45+
[dev-dependencies.rand]
46+
version = "0.3.8"
3347

34-
complex = []
35-
rational = []
48+
[features]
3649
bigint = []
50+
complex = []
3751
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 = []

bigint/Cargo.toml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[package]
2+
authors = ["Łukasz Jan Niemier <[email protected]>"]
3+
name = "num-bigint"
4+
version = "0.1.0"
5+
6+
[dependencies]
7+
8+
[dependencies.num-integer]
9+
optional = false
10+
path = "../integer"
11+
12+
[dependencies.num-traits]
13+
optional = false
14+
path = "../traits"
15+
16+
[dependencies.rand]
17+
optional = true
18+
version = "0.3.14"
19+
20+
[dependencies.serde]
21+
optional = true
22+
version = "0.7.0"

0 commit comments

Comments
 (0)