Skip to content

Commit dc74f94

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

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

+1002
-19126
lines changed

.travis.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,13 @@
11
language: rust
22
rust:
3-
- 1.15.0
3+
- 1.8.0
4+
- stable
45
- beta
56
- nightly
6-
matrix:
7-
include:
8-
- rust: 1.8.0
9-
before_script:
10-
# libc 0.2.34 started using #[deprecated]
11-
- cargo generate-lockfile
12-
- cargo update --package libc --precise 0.2.33
137
sudo: false
148
script:
159
- cargo build --verbose
1610
- ./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
2311
notifications:
2412
email:
2513
on_success: never

Cargo.toml

Lines changed: 9 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,15 @@
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"]
7-
categories = [ "algorithms", "data-structures", "science" ]
3+
description = "Integer traits and functions"
4+
documentation = "https://docs.rs/num-integer"
5+
homepage = "https://github.com/rust-num/num-integer"
6+
keywords = ["mathematics", "numerics"]
7+
categories = [ "algorithms", "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"
22-
23-
[dependencies]
24-
25-
[dependencies.num-bigint]
26-
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"
34-
35-
[dependencies.num-integer]
36-
path = "./integer"
9+
repository = "https://github.com/rust-num/num-integer"
10+
name = "num-integer"
3711
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"
12+
readme = "README.md"
4813

4914
[dependencies.num-traits]
50-
path = "./traits"
51-
version = "0.1.41"
52-
53-
[dev-dependencies]
54-
55-
[dev-dependencies.rand]
56-
version = "0.3.8"
57-
58-
[features]
59-
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-
]
15+
version = "0.1.32"

README.md

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,26 @@
1-
# num
1+
# num-integer
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-integer.svg)](https://crates.io/crates/num-integer)
4+
[![documentation](https://docs.rs/num-integer/badge.svg)](https://docs.rs/num-integer)
5+
[![Travis status](https://travis-ci.org/rust-num/num-integer.svg?branch=master)](https://travis-ci.org/rust-num/num-integer)
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+
`Integer` trait and functions for Rust.
128

139
## Usage
1410

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

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

2218
and this to your crate root:
2319

2420
```rust
25-
extern crate num;
21+
extern crate num_integer;
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-integer` crate is tested for rustc 1.8 and greater.

0 commit comments

Comments
 (0)