Skip to content

Commit ae80aff

Browse files
authored
Merge pull request #12 from paritytech/add-fixed-hash
Add fixed-hash and uint crates to parity-common
2 parents 0045887 + b0cf5d1 commit ae80aff

File tree

12 files changed

+3547
-1
lines changed

12 files changed

+3547
-1
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ matrix:
77
- rust: nightly
88
script:
99
- cargo build
10-
- cargo test
10+
- cargo test --all --exclude uint
11+
- cd uint/ && cargo test --features=std,impl_quickcheck_arbitrary

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[workspace]
22
members = [
3+
"fixed-hash",
34
"hashdb",
45
"keccak-hash",
56
"kvdb",
@@ -14,4 +15,5 @@ members = [
1415
"rlp",
1516
"trie-standardmap",
1617
"triehash",
18+
"uint"
1719
]

fixed-hash/Cargo.toml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[package]
2+
name = "fixed-hash"
3+
version = "0.2.2"
4+
authors = ["Parity Technologies <[email protected]>"]
5+
license = "MIT"
6+
homepage = "https://github.com/paritytech/parity-common"
7+
description = "Fixed-size hashes"
8+
9+
[dependencies]
10+
heapsize = { version = "0.4", optional = true }
11+
rand = { version = "0.4", optional = true }
12+
rustc-hex = { version = "1.0", optional = true }
13+
quickcheck = { version = "0.6", optional = true }
14+
15+
[target.'cfg(not(target_os = "unknown"))'.dependencies]
16+
libc = { version = "0.2", optional = true, default-features = false }
17+
18+
[features]
19+
default = ["libc"]
20+
std = ["rustc-hex", "rand"]
21+
heapsizeof = ["heapsize"]
22+
impl_quickcheck_arbitrary = ["quickcheck"]

0 commit comments

Comments
 (0)