Go to file
Homu f0bc5596af Auto merge of #196 - SuperFluffy:remove_use_serde, r=hauleth
`use serde;` leads to compilation error; `extern crate` is enough

This PR fixes the compile error of `num-complex` that appears due to a redundant `use serde;` after `extern crate serde;` in the same module. To reproduce the error, just build `num-complex` with the feature `serde`, see below.

```zsh
% cargo build --features serde
   Compiling num-complex v0.1.32 (file:///home/janis/github/num/complex)
src/lib.rs:27:5: 27:10 error: an extern crate named `serde` has already been imported in this module [E0259]
src/lib.rs:27 use serde;
                  ^~~~~
src/lib.rs:19:1: 19:20 note: previous import of `serde` here
src/lib.rs:19 extern crate serde;
              ^~~~~~~~~~~~~~~~~~~
src/lib.rs:27:5: 27:10 help: run `rustc --explain E0259` to see a detailed explanation
error: aborting due to previous error
error: Could not compile `num-complex`.
```
2016-06-13 23:14:11 +09:00
.travis test_features.sh: re-enable as a simple build 2016-03-25 18:30:27 -07:00
benches Expand bigint shl/shr benchmarking 2016-01-27 22:53:10 -08:00
bigint bigint: Fix calculation of size for multiply temporaries 2016-04-20 15:48:02 -08:00
complex Remove `use`ing serde. Import through `extern crate` is enough 2016-06-13 15:46:56 +02:00
doc Update repo and doc links 2015-11-12 18:40:13 -08:00
integer integer: add path-dependency versions 2016-04-14 00:25:51 -07:00
iter iter: add path-dependency versions 2016-04-14 00:37:04 -07:00
macros macros: bump to 0.1.33 2016-05-18 16:28:32 -07:00
rational rational: add path-dependency versions 2016-04-14 00:39:07 -07:00
src Move functions remaining in num to num-traits 2016-05-13 10:38:14 +02:00
traits Move functions remaining in num to num-traits 2016-05-13 10:38:14 +02:00
.gitignore Update num-macros to Rust master 2015-05-14 10:19:47 -07:00
.multirust.sh .multirust.sh: use the subcrated "make test" 2016-03-25 18:30:27 -07:00
.travis.yml .travis.yml: add a verbose build 2016-03-25 18:30:27 -07:00
Cargo.toml num: add path-dependency versions 2016-04-14 00:45:03 -07:00
LICENSE-APACHE Initial seeding from rust repo 2014-09-16 10:35:35 -07:00
LICENSE-MIT Initial seeding from rust repo 2014-09-16 10:35:35 -07:00
Makefile Makefile: add complex and iter 2016-03-25 17:50:51 -07:00
README.md Update intros to better reflect the breadth of num 2015-11-21 16:39:00 -08:00

README.md

num

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

Usage

Add this to your Cargo.toml:

[dependencies]
num = "0.1"

and this to your crate root:

extern crate num;