Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Bring integer arithmetic up to crates.io #3943

Merged
merged 5 commits into from
Dec 23, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions util/bigint/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,9 @@ license = "GPL-3.0"
name = "ethcore-bigint"
version = "0.1.2"
authors = ["Parity Technologies <admin@parity.io>"]
build = "build.rs"

[build-dependencies]
rustc_version = "0.1"

[dependencies]
bigint = "1.0"
rustc-serialize = "0.3"
heapsize = "0.3"
rand = "0.3.12"
Expand Down
25 changes: 0 additions & 25 deletions util/bigint/build.rs

This file was deleted.

4 changes: 2 additions & 2 deletions util/bigint/src/hash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ use std::str::FromStr;
use rand::Rng;
use rand::os::OsRng;
use rustc_serialize::hex::{FromHex, FromHexError};
use uint::{Uint, U256};
use bigint::{Uint, U256};

/// Trait for a fixed-size byte array to be used as the output of hash functions.
pub trait FixedHash: Sized {
Expand Down Expand Up @@ -512,7 +512,7 @@ pub type H256FastSet = HashSet<H256, BuildHasherDefault<PlainHasher>>;
#[cfg(test)]
mod tests {
use hash::*;
use uint::*;
use bigint::*;
use std::str::FromStr;

#[test]
Expand Down
6 changes: 3 additions & 3 deletions util/bigint/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@

extern crate rand;
extern crate rustc_serialize;
extern crate bigint;
#[macro_use] extern crate heapsize;

pub mod uint;
pub mod hash;

/// A prelude module for re-exporting all the types defined in this crate.
Expand All @@ -34,6 +34,6 @@ pub mod hash;
/// let y = x + 1.into();
/// ```
pub mod prelude {
pub use ::uint::*;
pub use ::bigint::*;
pub use ::hash::*;
}
}
Loading