Skip to content

Commit 7184efc

Browse files
committed
Move num-rational to its own repo
All the prior `num` history is kept, so old `num-rational` tags are still valid, but future development here will be just for `num-rational`.
1 parent f172ef3 commit 7184efc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+1424
-19079
lines changed

.travis.yml

+1-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
language: rust
22
rust:
3-
- 1.15.0
3+
- stable
44
- beta
55
- nightly
66
matrix:
@@ -14,12 +14,6 @@ sudo: false
1414
script:
1515
- cargo build --verbose
1616
- ./ci/test_full.sh
17-
- cargo doc
18-
after_success: |
19-
[ $TRAVIS_BRANCH = master ] &&
20-
[ $TRAVIS_PULL_REQUEST = false ] &&
21-
[ $TRAVIS_RUST_VERSION = nightly ] &&
22-
ssh-agent ./ci/deploy.sh
2317
notifications:
2418
email:
2519
on_success: never

Cargo.toml

+18-55
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,36 @@
11
[package]
22
authors = ["The Rust Project Developers"]
3-
description = "A collection of numeric types and traits for Rust, including bigint,\ncomplex, rational, range iterators, generic integers, and more!\n"
4-
documentation = "http://rust-num.github.io/num"
5-
homepage = "https://github.com/rust-num/num"
6-
keywords = ["mathematics", "numerics", "bignum"]
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"]
77
categories = [ "algorithms", "data-structures", "science" ]
88
license = "MIT/Apache-2.0"
9-
repository = "https://github.com/rust-num/num"
10-
name = "num"
11-
version = "0.1.41"
12-
13-
[badges]
14-
travis-ci = { repository = "rust-num/num" }
15-
16-
[[bench]]
17-
name = "bigint"
18-
19-
[[bench]]
20-
harness = false
21-
name = "shootout-pidigits"
9+
name = "num-rational"
10+
repository = "https://github.com/rust-num/num-rational"
11+
version = "0.1.40"
12+
readme = "README.md"
2213

2314
[dependencies]
2415

2516
[dependencies.num-bigint]
2617
optional = true
27-
path = "bigint"
28-
version = "0.1.41"
29-
30-
[dependencies.num-complex]
31-
optional = true
32-
path = "complex"
33-
version = "0.1.41"
18+
version = "0.1.32"
3419

3520
[dependencies.num-integer]
36-
path = "./integer"
37-
version = "0.1.35"
38-
39-
[dependencies.num-iter]
40-
optional = false
41-
path = "iter"
42-
version = "0.1.34"
43-
44-
[dependencies.num-rational]
45-
optional = true
46-
path = "rational"
47-
version = "0.1.40"
21+
version = "0.1.32"
4822

4923
[dependencies.num-traits]
50-
path = "./traits"
51-
version = "0.1.41"
24+
version = "0.1.32"
5225

53-
[dev-dependencies]
26+
[dependencies.rustc-serialize]
27+
optional = true
28+
version = "0.3.19"
5429

55-
[dev-dependencies.rand]
56-
version = "0.3.8"
30+
[dependencies.serde]
31+
optional = true
32+
version = ">= 0.7.0, < 0.9.0"
5733

5834
[features]
35+
default = ["bigint", "rustc-serialize"]
5936
bigint = ["num-bigint"]
60-
complex = ["num-complex"]
61-
rational = ["num-rational"]
62-
default = ["bigint", "complex", "rational", "rustc-serialize"]
63-
64-
serde = [
65-
"num-bigint/serde",
66-
"num-complex/serde",
67-
"num-rational/serde"
68-
]
69-
rustc-serialize = [
70-
"num-bigint/rustc-serialize",
71-
"num-complex/rustc-serialize",
72-
"num-rational/rustc-serialize"
73-
]

README.md

+8-13
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,26 @@
1-
# num
1+
# num-rational
22

3-
[![](https://travis-ci.org/rust-num/num.svg)](https://travis-ci.org/rust-num/num)
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+
[![Travis status](https://travis-ci.org/rust-num/num-rational.svg?branch=master)](https://travis-ci.org/rust-num/num-rational)
46

5-
A collection of numeric types and traits for Rust.
6-
7-
This includes new types for big integers, rationals, and complex numbers,
8-
new traits for generic programming on numeric properties like `Integer`,
9-
and generic range iterators.
10-
11-
[Documentation](http://rust-num.github.io/num)
7+
Generic `Rational` numbers for Rust.
128

139
## Usage
1410

1511
Add this to your `Cargo.toml`:
1612

1713
```toml
1814
[dependencies]
19-
num = "0.1"
15+
num-rational = "0.1"
2016
```
2117

2218
and this to your crate root:
2319

2420
```rust
25-
extern crate num;
21+
extern crate num_rational;
2622
```
2723

2824
## Compatibility
2925

30-
Most of the `num` crates are tested for rustc 1.8 and greater.
31-
The exception is `num-derive` which requires at least rustc 1.15.
26+
The `num-rational` crate is tested for rustc 1.8 and greater.

0 commit comments

Comments
 (0)