Alex Crichton
1e07193480
Merge pull request #109 from jdm/rustup
...
Upgrade to 2015-08-30 rustc nightly.
2015-09-01 14:33:25 -07:00
Josh Matthews
11b9dd0b7a
Upgrade to 2015-08-30 rustc nightly.
2015-09-01 16:12:02 -04:00
Huon Wilson
4d7cb95740
Bump to 0.1.27.
2015-08-19 10:15:50 -07:00
Huon Wilson
13bf6a011f
Merge pull request #108 from Gustorn/sized
...
Added Sized trait bound for traits that requite it
2015-08-19 10:13:46 -07:00
Gustorn
3ccb4bd6c5
Added Sized trait bound for traits that requite it
...
See rust-lang/rfcs#1214
2015-08-19 19:11:55 +02:00
Alex Crichton
1f298e233c
Bump versions to 0.1.26
2015-08-10 12:12:08 -07:00
Alex Crichton
b57accf314
Update to rust nightly
2015-08-10 12:11:56 -07:00
Alex Crichton
d4e7a6654f
Bump num to 0.1.25
2015-06-02 16:52:31 -07:00
Alex Crichton
a7c70adf5b
Merge pull request #101 from bluss/num-features
...
Make rustc-serialize, bignum, rational, complex into opt-out features
2015-06-02 16:54:05 -07:00
root
4c123a9e71
Make rustc-serialize, bignum, rational, complex into opt-out features
...
Making bignum optional allows skipping the rustc-serialize and rand
dependencies too, and it makes a big difference in num's build time.
With default (all) features, clean build time including dependencies: 27
seconds.
With no default features, clean build time including dependencies (none):
5 seconds.
2015-06-02 23:48:06 +02:00
Alex Crichton
aeebff3578
Bump to 0.1.25
2015-05-26 07:35:37 -07:00
Alex Crichton
ff6f8d9d29
Merge pull request #98 from clatour/rustup
...
Update num-macros to rust nightly
2015-05-26 07:36:04 -07:00
Alex Crichton
0a7847cd65
Merge pull request #99 from b52/issue-93-float-min-positive
...
Provide generic around f32/f64::MIN_POSITIVE
2015-05-26 07:23:41 -07:00
Alex Crichton
3f69d7632f
Merge pull request #100 from b52/issue-92-reexport-cast
...
Re-export `cast` for ergonomic reasons
2015-05-26 07:23:13 -07:00
Alex Crichton
82645a31df
Don't print to stdout on `cargo bench`
2015-05-26 07:21:12 -07:00
Oliver Mader
785e07d83c
Re-export `cast` for ergonomic reasons
2015-05-26 15:03:34 +02:00
Oliver Mader
6c9f457712
Provide generic around f32/f64::MIN_POSITIVE
2015-05-26 14:56:43 +02:00
Chandler Latour
9399e4ff88
Change Annotatable to &Annotatable for nightly
...
See: rust-lang/rust#25683
2015-05-24 13:10:49 -06:00
Alex Crichton
a6a399d52e
Enable testing on stable Rust
2015-05-19 09:22:06 -07:00
Alex Crichton
edcb6295ff
Bump to 0.1.24
2015-05-18 09:21:01 -07:00
Alex Crichton
dab8c6de71
Merge pull request #96 from renato-zannon/rustup
...
Update num-macros to rust master
2015-05-18 08:58:12 -07:00
Alex Crichton
0ab1010b10
Merge pull request #95 from runarberg/master
...
Added the power method for rational numbers
2015-05-18 08:42:22 -07:00
Renato Zannon
e8450fd47a
Update num-macros to rust master
2015-05-18 06:48:58 -03:00
runarberg
505eb86c18
Added the power method for rational numbers
2015-05-17 18:22:32 +00:00
Alex Crichton
44679902bd
Update num-macros to Rust master
2015-05-14 10:19:47 -07:00
Alex Crichton
b75dbbdfcb
Rename num_macros to num-macros
2015-05-01 18:00:02 -07:00
Alex Crichton
dc0a0452c6
Merge branch 'master' of https://github.com/erickt/num
...
Conflicts:
Cargo.toml
2015-05-01 17:59:53 -07:00
Alex Crichton
a3d9093938
Merge pull request #89 from joshtriplett/bounded-tuples
...
traits.rs: Implement Bounded for tuples of Bounded types
2015-04-26 23:45:57 -07:00
Josh Triplett
6f2db9b631
Factor out more generic macro to run a macro on each tuple type
2015-04-25 17:03:05 -07:00
Josh Triplett
c6163dac40
traits.rs: Implement Bounded for tuples of Bounded types
...
For example, the following will print (4294967295, 65535):
extern crate num;
use num::traits::Bounded;
fn main() {
let t : (u32, u16) = Bounded::max_value();
println!("{:?}", t);
}
2015-04-25 16:50:03 -07:00
mitchmindtree
63d2e79c1e
Added temporary fix for unstable std from_str_radix method
2015-04-24 15:17:42 +10:00
mitchmindtree
3028d602e6
Fixed issue where unstable version of from_str_radix was being called instead of the local Num trait version
2015-04-24 04:57:37 +10:00
mitchmindtree
f8fd49c375
Use latest version of rand crate
2015-04-24 04:22:23 +10:00
mitchmindtree
e3557d61e7
Use latest rustc-serialize and increment version for crates.io
2015-04-24 04:11:12 +10:00
Alex Crichton
cfe5ac956b
Merge pull request #85 from mitchmindtree/master
...
Removed deprecation attributes that can no longer be used outside of std
2015-04-22 07:35:16 -07:00
mitchmindtree
f70a07bab7
Incremented version for crates.io
2015-04-22 22:27:51 +10:00
mitchmindtree
f0af39dfae
Removed deprecation attributes that can no longer be used outside of std
2015-04-22 22:27:20 +10:00
Alex Crichton
eeeaaf2407
Merge pull request #82 from nham/improve_bigint_docs
...
Improve bigint docs.
2015-04-15 13:50:55 -07:00
Nick Hamann
82aa7c7864
Improve bigint docs.
...
Convert instances of <string literal>.as_bytes() to byte string
literals. Also, add examples for from_bytes_le() and to_bytes_be().
2015-04-15 14:46:07 -05:00
Erick Tryzelaar
f4a69a6f01
Export the #[derive(FromPrimitive)] from rust proper
...
This changes the name to #[derive(NumFromPrimitive)]
in order to not conflict with the libsyntax macro.
2015-04-12 11:19:48 -07:00
Alex Crichton
44dfed32b7
Bump to 0.1.22
2015-04-04 23:49:41 -07:00
Alex Crichton
7861e4c6da
Merge pull request #78 from kennytm/master
...
impl PrimInt for primitive types, and remove some unstable features.
2015-04-04 23:46:03 -07:00
kennytm
fd86a2c531
Make sure PrimInt is actually implemented for the primitive types.
2015-04-05 03:10:40 +08:00
kennytm
24d2f15ccf
Avoid and remove some unstable features.
...
The only #[feature] left for now is the bencher.
2015-04-05 03:09:29 +08:00
Alex Crichton
80b6f92c4e
Merge pull request #77 from andersk/complex-neg
...
Require Neg for Complex conj and inv
2015-04-03 14:04:11 -07:00
Anders Kaseorg
7fb887bffc
Require Neg for Complex conj and inv
...
If T is an unsigned integer type, these methods are guaranteed to
overflow unless the result is actually real, so we should disallow
them for the same reason that Neg was removed from these types.
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2015-04-03 15:10:44 -04:00
Alex Crichton
24b7793174
Bump to 0.1.21
2015-04-03 10:26:45 -07:00
Alex Crichton
996128bd4b
Fix some doc tests
2015-04-03 10:26:37 -07:00
Alex Crichton
f2cecb0fda
Merge pull request #76 from aturon/beta-fixes
...
Update to 1.0.0-beta (stable only)
2015-04-03 10:23:07 -07:00
Aaron Turon
63c7a25ed9
Update to 1.0.0-beta (stable only)
...
Along the way, this commit also rationalizes the traits a bit more.
Moving to stable required vendoring a couple of minor things (notably,
radix formatting).
2015-04-03 10:17:39 -07:00