Commit Graph

1195 Commits

Author SHA1 Message Date
Herobird 91c88f3689 Update `unit` to version `0.5.0-beta` 2018-11-05 17:06:40 +01:00
Herobird f78004a8cc Update ethbloom and ethereum-types to new `fixed-hash` version `0.3.0-beta` 2018-11-05 17:03:12 +01:00
Herobird 09a9430e07 [uint] Bump version to 0.5.0-beta.1 2018-11-05 15:32:12 +01:00
Herobird 3e2535c86a [uint] Improve common feature impl
- U256 and U512 are no longer generated when not used.
- Other definitions in `uint` module are now visible again when not compiling with common feature.
2018-11-05 15:30:18 +01:00
Herobird 14a0c0762f [uint] Add required-features to [[test]] target in Cargo.toml 2018-11-05 15:29:10 +01:00
Herobird fb6bf115dc Remove tests for deprecated Uint::mul_u32 method 2018-11-05 15:18:38 +01:00
Herobird d85099004c Debug, Display and LowerHex impls no longer require std feature 2018-11-05 15:17:16 +01:00
Herobird ded80bb32f Remove deprecated Uint::mul_u32 method
Use Mul<u32> instead.
2018-11-05 15:15:59 +01:00
Herobird c89a8e91b1 Publicly export libcore as `core_`
This fixes issues with core being not exported publicly in #[no_std] envs.
Also make many names in uint impl more explicit.
2018-11-05 15:14:56 +01:00
Herobird 01f8520b8d [uint] Use crunchy without default features
Use opt-in for crunchy/std feature support.
The feature `uint/std` properly propagates to `crunchy/std`.
2018-11-05 15:10:36 +01:00
Herobird 2eedf6f802 [uint] Remove deprecated Uint::to_hex method
Use LowerHex instead.
2018-11-05 15:09:30 +01:00
Herobird 2d1a8355f0 [uint] Bump version to 0.5.0-beta.0 2018-11-05 14:18:18 +01:00
Herobird 240335bbc3 Adjust "how to use" note in README for the beta version 2018-11-05 14:17:00 +01:00
Herobird 2a08a17286 Simplify README title 2018-11-05 14:15:34 +01:00
Herobird 7d2375aa5f [fixed-hash] Bump version to 0.3.0-beta.2 2018-11-05 12:23:40 +01:00
Herobird 6e0453af09 Rename all optional features
- rand-support => rand
- byteorder-support => byteorder
- heapsize-support => heapsize
- quickcheck-support => quickcheck
2018-11-05 12:18:39 +01:00
Herobird 1f94d2747d Separate out feature guarded impl block into their own feature guarded macros
This avoids the problems of introducing the feature guarded features in user crates.
2018-11-05 12:14:07 +01:00
Herobird 0bceabb894 Hide export of static_assertions crate 2018-11-05 11:30:45 +01:00
Herobird 94a4ceb716 Rule out forgotten heapsize-support feature usages 2018-11-01 18:20:54 +01:00
Herobird fc98fed369 [uint] Update travisCI and appveyor configs for the feature renaming 2018-11-01 15:40:25 +01:00
Herobird 7a27290b43 Modernize README
- Add `Description` section
- Add `Usage` section
- Add `Tests` section
- Add `Crate Features` section
2018-11-01 15:03:33 +01:00
Herobird 78c37c8e6b Add `common` crate feature
This makes `U256` and `U512` definitions publicly available if needed.
This is enabled by default.
2018-11-01 15:02:44 +01:00
Herobird eb931ee646 Remove explicit required-features since `std` is default 2018-11-01 15:02:00 +01:00
Herobird 8fc1fa3fb4 Rename features to make them comply to Rust standards
- quickcheck-support => quickcheck
- heapsize-support => heapsize
2018-11-01 14:43:22 +01:00
Herobird e386193722 [uint] Bump version to 0.5 2018-10-31 19:13:02 +01:00
Herobird 5d5758bddb Add Cargo.toml readme field 2018-10-31 19:12:48 +01:00
Herobird 1c03c3795a Adjust .travis.yml and appveyor.yml to new uint features 2018-10-31 19:09:33 +01:00
Herobird a6f95b9742 Update crunchy from 0.1 to 0.2 2018-10-31 19:07:24 +01:00
Herobird cac6df4c95 Remove dev-dependencies since they are already non-dev deps 2018-10-31 19:07:24 +01:00
Herobird e62c6a316e Improve formatting of #[cfg_attr(..)] in lib.rs 2018-10-31 19:07:24 +01:00
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