Herobird
a82c72d12a
Document the api-dummy feature
2018-10-30 12:26:52 +01:00
Herobird
93d18df0ad
Remove restriction to libc feature usage for heapsize impl
2018-10-30 12:14:06 +01:00
Herobird
3e51054b65
Use byteorder version 1.2 instead of 1.2.7
2018-10-30 12:13:45 +01:00
Herobird
1201ef2070
Appveyor: add tests for fixed-hash, uint, hashdb and plain_hasher
...
This now just tests the same things as travis CI.
2018-10-30 12:09:24 +01:00
Herobird
00fdcff60a
travisCI: test all features of fixed-hash
2018-10-30 12:08:45 +01:00
Bastian Köcher
776838c08e
Merge pull request #73 from paritytech/chore/bump-regex-log
...
kvdb-rocksdb: bump `regex` and `log`
2018-10-30 08:49:45 +01:00
Herobird
cd4533a341
Remove deprecated section of the README
...
Deprecated since this crate no longer supports interoperability with uint in version 0.3.
This support has to be provided from the outside, like pwasm-std.
2018-10-29 20:47:21 +01:00
Herobird
eaf04c7795
Bump version to 0.3.0-beta.0
2018-10-29 20:09:11 +01:00
Herobird
e18d568e94
Add support for docs.rs
...
This crate now generates a useful ApiDummy hash type for the purpose of API inspection at docs.rs.
Also the Cargo.toml now refers to the documentation that is going to be generated at docs.rs once uploaded to crates.io.
2018-10-29 20:08:53 +01:00
Herobird
f41f1534a1
Update .travis.yml for the new fixed-hash feature set
2018-10-29 19:38:23 +01:00
Herobird
1780375d50
Merge branch 'master' into api-refactorings
2018-10-29 19:13:50 +01:00
Niklas Adolfsson
6f2b343ab6
bump regex and log
2018-10-29 18:20:17 +01:00
Herobird
8ce3fc8c69
Remove all old unit tests in hash.rs
2018-10-29 18:00:43 +01:00
Herobird
1c56636fbf
Replace all spaces with tabs (thanks rustfmt)
2018-10-29 17:59:51 +01:00
Herobird
16696676cb
Add unit tests for ops impls
2018-10-29 17:50:18 +01:00
Herobird
6d9c062fb1
Add unit tests for conversions between two differently sized hash types
2018-10-29 17:32:38 +01:00
Herobird
6266c27b96
Add unit test for optional HeapsizeOf trait impl
2018-10-29 17:32:21 +01:00
Herobird
a75711cb6c
Add unit test for FromStr failure because of too many input digits
2018-10-29 17:22:15 +01:00
Herobird
16e04e9e5c
Add useful doc comment to FromStr impl
2018-10-29 17:21:50 +01:00
Herobird
1295c16d3f
Add unit tests for FromStr impl
2018-10-29 17:18:39 +01:00
Herobird
7dfd557e05
Fix bug in optional quickcheck implementation
2018-10-29 17:09:40 +01:00
Herobird
5303798365
Reordered features in Cargo.toml
2018-10-29 17:05:49 +01:00
Herobird
845291b859
Add rand-support unit tests
2018-10-29 17:05:04 +01:00
Herobird
0d9409ed7c
Add some doc comment notes for some constructors
...
Shall make users aware of big endian interpretation.
2018-10-29 16:53:46 +01:00
Herobird
f02346cf21
Add unit tests for to_low_u64_{be,le,ne} and from_low_u64_{be,le,ne}
2018-10-29 16:51:35 +01:00
Herobird
557a6da43a
Fix impls of to_low_u64_{be,le,ne} and from_low_u64_{be,le,ne}
2018-10-29 16:51:00 +01:00
Herobird
538fcab5b3
Use new use syntax for doc tests
2018-10-29 15:03:56 +01:00
Herobird
24be3226b1
Add #[inline] where useful
2018-10-29 15:03:37 +01:00
Herobird
e46276c8aa
Rename byteorder using API + no more panic on small hashes
...
Renamings
- low_u64_{be,le,ne} -> to_low_u64_{be,le_ne}
- from_u64_{be,le,ne} -> from_low_u64_{be,le,ne}
Now using this API on hashes with less than 8 bytes no longer panics by default but uses only the least significant bits on either side.
2018-10-29 14:55:58 +01:00
Herobird
d30fdc3e7b
Guard some tests when byteorder-support feature is missing
2018-10-29 14:25:54 +01:00
Herobird
cdd2756193
Add byteorder/std feature if std feature is active
2018-10-29 14:24:20 +01:00
Herobird
1cf31b8078
Move impls for PartialEq and Ord to main macro body
...
Also move specialized ones for libc.
2018-10-29 12:43:42 +01:00
Herobird
766e64c49e
Apply rustfmt for some attributes
2018-10-29 12:31:30 +01:00
Herobird
0439b1dc71
Simplify impl of From conversion between hash types slightly
2018-10-29 12:31:10 +01:00
Herobird
e623477ecf
Make test using byteorder compile again when not using byteorder
2018-10-29 12:30:42 +01:00
Herobird
daadb890c5
Move byteorder impl into their own impl block
2018-10-29 12:30:21 +01:00
Herobird
1a17ef9fda
Move rand-support macro impl to main macro body
2018-10-29 12:29:58 +01:00
Herobird
604df6a2af
Move impl_quickcheck_for_hash macro into main macro body
2018-10-29 12:12:56 +01:00
Herobird
e88d134103
Move impl_heapsize_for_hash macro into main macro body
...
Same as with rustc-hex macro
2018-10-29 12:10:31 +01:00
Herobird
bed7741c0e
Move impl_rustc_hex_for_hash macro body into main macro body
...
This reduces the amount of publicly exported (and hidden) macros from this crate.
2018-10-29 12:09:50 +01:00
Herobird
5a3252f311
Make byteorder dependency optional
...
Also make all byteorder dependend fns optional by this.
These are
- from_u64_{be,le,ne}
- low_u64_{be,le,ne}
They are gated by the `byteorder-support` feature, now.
2018-10-29 11:58:27 +01:00
Herobird
8040f8cd66
Add first bunch of brand new unit tests
2018-10-29 11:32:06 +01:00
Herobird
0b4a9aa7c2
Rename Hash::from_bytes to Hash::from_slice
2018-10-29 11:31:43 +01:00
Herobird
4f884c034e
Change `clone_from_slice` to `copy_from_slice` in `Hash::assign_from_slice` impl
...
This should improve performance in some scenarios, maybe(R).
2018-10-29 11:31:27 +01:00
Herobird
3563954397
Update rand from 0.4 to 0.5
...
Also adds fns Hash::random_using and Hash::randomize_using.
2018-10-29 10:46:24 +01:00
Herobird
85e117182b
Apply rustfmt to hash.rs
2018-10-29 10:26:11 +01:00
Herobird
6c46e9dc95
Commented out serde imports in doc test
...
Makes the doc test compile and run again.
2018-10-29 10:24:50 +01:00
Herobird
3b474fcb30
Make PartialEq and Ord trait paths explicit
2018-10-29 01:54:40 +01:00
Herobird
2845af26d8
Simplify libc impl code a bit
2018-10-29 01:53:10 +01:00
Herobird
d2dfee376e
Remove unused public export
2018-10-29 01:45:07 +01:00