Skip to content

Commit

Permalink
Move num-integer to its own repo
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
cuviper committed Dec 19, 2017
1 parent f172ef3 commit dc74f94
Show file tree
Hide file tree
Showing 68 changed files with 1,002 additions and 19,126 deletions.
16 changes: 2 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,13 @@
language: rust
rust:
- 1.15.0
- 1.8.0
- stable
- beta
- nightly
matrix:
include:
- rust: 1.8.0
before_script:
# libc 0.2.34 started using #[deprecated]
- cargo generate-lockfile
- cargo update --package libc --precise 0.2.33
sudo: false
script:
- cargo build --verbose
- ./ci/test_full.sh
- cargo doc
after_success: |
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
[ $TRAVIS_RUST_VERSION = nightly ] &&
ssh-agent ./ci/deploy.sh
notifications:
email:
on_success: never
Expand Down
76 changes: 9 additions & 67 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,73 +1,15 @@
[package]
authors = ["The Rust Project Developers"]
description = "A collection of numeric types and traits for Rust, including bigint,\ncomplex, rational, range iterators, generic integers, and more!\n"
documentation = "http://rust-num.github.io/num"
homepage = "https://github.com/rust-num/num"
keywords = ["mathematics", "numerics", "bignum"]
categories = [ "algorithms", "data-structures", "science" ]
description = "Integer traits and functions"
documentation = "https://docs.rs/num-integer"
homepage = "https://github.com/rust-num/num-integer"
keywords = ["mathematics", "numerics"]
categories = [ "algorithms", "science" ]
license = "MIT/Apache-2.0"
repository = "https://github.com/rust-num/num"
name = "num"
version = "0.1.41"

[badges]
travis-ci = { repository = "rust-num/num" }

[[bench]]
name = "bigint"

[[bench]]
harness = false
name = "shootout-pidigits"

[dependencies]

[dependencies.num-bigint]
optional = true
path = "bigint"
version = "0.1.41"

[dependencies.num-complex]
optional = true
path = "complex"
version = "0.1.41"

[dependencies.num-integer]
path = "./integer"
repository = "https://github.com/rust-num/num-integer"
name = "num-integer"
version = "0.1.35"

[dependencies.num-iter]
optional = false
path = "iter"
version = "0.1.34"

[dependencies.num-rational]
optional = true
path = "rational"
version = "0.1.40"
readme = "README.md"

[dependencies.num-traits]
path = "./traits"
version = "0.1.41"

[dev-dependencies]

[dev-dependencies.rand]
version = "0.3.8"

[features]
bigint = ["num-bigint"]
complex = ["num-complex"]
rational = ["num-rational"]
default = ["bigint", "complex", "rational", "rustc-serialize"]

serde = [
"num-bigint/serde",
"num-complex/serde",
"num-rational/serde"
]
rustc-serialize = [
"num-bigint/rustc-serialize",
"num-complex/rustc-serialize",
"num-rational/rustc-serialize"
]
version = "0.1.32"
21 changes: 8 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,26 @@
# num
# num-integer

[![](https://travis-ci.org/rust-num/num.svg)](https://travis-ci.org/rust-num/num)
[![crate](https://img.shields.io/crates/v/num-integer.svg)](https://crates.io/crates/num-integer)
[![documentation](https://docs.rs/num-integer/badge.svg)](https://docs.rs/num-integer)
[![Travis status](https://travis-ci.org/rust-num/num-integer.svg?branch=master)](https://travis-ci.org/rust-num/num-integer)

A collection of numeric types and traits for Rust.

This includes new types for big integers, rationals, and complex numbers,
new traits for generic programming on numeric properties like `Integer`,
and generic range iterators.

[Documentation](http://rust-num.github.io/num)
`Integer` trait and functions for Rust.

## Usage

Add this to your `Cargo.toml`:

```toml
[dependencies]
num = "0.1"
num-integer = "0.1"
```

and this to your crate root:

```rust
extern crate num;
extern crate num_integer;
```

## Compatibility

Most of the `num` crates are tested for rustc 1.8 and greater.
The exception is `num-derive` which requires at least rustc 1.15.
The `num-integer` crate is tested for rustc 1.8 and greater.
Loading

0 comments on commit dc74f94

Please sign in to comment.