Crate chksum_core

Source
Expand description

Core traits and functions for straightforward hash computation of bytes, files, directories and more.

§Setup

To use this crate, add the following entry to your Cargo.toml file in the dependencies section:

[dependencies]
chksum-core = "0.1.0"

Alternatively, you can use the cargo add subcommand:

cargo add chksum-core

§Features

§Asynchronous Runtime

  • async-runtime-tokio: Enables async interface for Tokio runtime.

By default, neither of these features is enabled.

§Example Crates

For implementation-specific examples, refer to the source code of the following crates:

§License

This crate is licensed under the MIT License.

Re-exports§

pub use chksum_hash_core as hash;

Enums§

Error
The error type for checksum-based operations.

Traits§

AsyncChksumable
A trait for complex objects which must be processed chunk by chunk.
Chksumable
A trait for complex objects which must be processed chunk by chunk.
Digest
A trait for hash digests.
Hash
A trait for hash objects.
Hashable
A trait for simple bytes-like objects.

Functions§

async_chksumasync-runtime-tokio
Computes the hash of the given input.
chksum
Computes the hash of the given input.
default
Creates a default hash.
hash
Computes the hash of the given input.

Type Aliases§

Result
A specialized Result type for checksum-based operations.