docs.rs failed to build fixed-hash-0.3.0-beta.3
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
fixed-hash-0.8.0
Fixed Hash
Provides macros to construct custom fixed-size hash types.
Examples
Simple 256 bit (32 bytes) hash type.
extern crate fixed_hash;
construct_fixed_hash!
Opt-in to add conversions between differently sized hashes.
construct_fixed_hash!
construct_fixed_hash!
// auto-implement conversions between H256 and H160
impl_fixed_hash_conversions!;
// now use the generated conversions
assert_eq!;
assert_eq!;
It is possible to add attributes to your types, for example to make them serializable.
extern crate serde;
extern crate serde_derive;
construct_fixed_hash!
Features
By default this is an standard library depending crate.
For a #[no_std]
environment use it as follows:
fixed-hash = { version = "0.3", default-features = false }
Available Features
std
: Use the standard library instead of the core library.- Using this feature enables the following features
rustc-hex/std
rand/std
byteorder/std
- Enabled by default.
- Using this feature enables the following features
libc
: Uselibc
for implementations ofPartialEq
andOrd
.- Enabled by default.
rand
: Provide API based on therand
crate.- Enabled by default.
byteorder
: Provide API based on thebyteorder
crate.- Enabled by default.
heapsize
: ProvideHeapsizeOf
implementation for hash types.- Disabled by default.
quickcheck
: Providequickcheck
implementation for hash types.- Disabled by default.
api-dummy
: Generate a dummy hash type for API documentation.- Enabled by default at
docs.rs
- Enabled by default at