Herobird
20ddb9cc6a
Rename features for more conformance with fixed-hash
...
heapsizeof -> heapsize-support
impl_quickcheck_arbitrary -> quickcheck-support
2018-10-31 19:07:24 +01:00
Herobird
cf7a603495
Enable "std" feature by default
2018-10-31 19:07:24 +01:00
Herobird
f3b8c60216
Bump version to 0.3.0-beta.1
2018-10-31 12:44:43 +01:00
Herobird
7a511df359
Publicly export crate core as core_
...
This fixes a bug that this crate wasn't usable in no_std environments because core wasn't exported publicly by default.
2018-10-31 12:31:10 +01:00
Herobird
617b7b0208
Export static_assertions::const_assert
...
This has the effect that users of the crate no longer have to import the static_assertions crate just to have this macro in scope.
2018-10-31 12:29:46 +01:00
Hero Bird
e101b644d2
Merge pull request #71 from paritytech/api-refactorings
...
[fixed-hash] Major overhaul of `construct_hash!` macro
2018-10-31 00:35:20 +01:00
Herobird
59bc634eda
Add info what features are enabled by enabling the std feature
2018-10-30 21:30:13 +01:00
Herobird
8431aea64e
Remove libc feature req of heapsize-support
2018-10-30 21:20:30 +01:00
Herobird
2beacfd92d
Revert heapsize-support changes
...
Seems like heapsize needs libc and target_os = "unknown" settings.
2018-10-30 21:18:51 +01:00
Herobird
1badf67a17
Add Hash::to_bytes api
...
Could be used by uint conversion to avoid length checks.
2018-10-30 18:00:10 +01:00
Herobird
bbe1442da6
Add readme section to Cargo.toml used by crates.io
2018-10-30 16:32:16 +01:00
Herobird
0202383a92
Add README section about available crate features and their purposes
2018-10-30 15:50:03 +01:00
Herobird
dcccb0b158
Rename `impl_hash_conversions` to `impl_fixed_hash_conversions`
2018-10-30 15:49:47 +01:00
Herobird
386a0eb13c
Fix README for renaming of `construct_hash` to `construct_fixed_hash`
2018-10-30 15:49:20 +01:00
Herobird
5713e33573
Rename `construct_hash` macro to `construct_fixed_hash`
...
This should avoid more name collission and is also more clear that the macro is linked to the `fixed-hash` crate.
2018-10-30 15:34:54 +01:00
Herobird
ec30a9f7d4
Replace all whitespace indentation with tabs
2018-10-30 13:00:14 +01:00
Herobird
2d02a6520e
Rename `test` var to `expected` (more clear)
2018-10-30 12:58:28 +01:00
Herobird
7c76d2bf51
Fix docs for impl block of byteorder-support
2018-10-30 12:58:12 +01:00
Herobird
baff409671
Improve doc comment for Hash::repeat_byte
2018-10-30 12:57:54 +01:00
Herobird
dda1009e64
Improve doc-comment and doc-test for construct_hash macro
2018-10-30 12:27:12 +01:00
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