-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
68 changed files
with
1,002 additions
and
19,126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,26 @@ | ||
# num | ||
# num-integer | ||
|
||
[](https://travis-ci.org/rust-num/num) | ||
[](https://crates.io/crates/num-integer) | ||
[](https://docs.rs/num-integer) | ||
[](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. |
Oops, something went wrong.