sdbm

View on Crates.io Documentation Build Status


SDBM is a non-cryptographic hashing algorithm.

Usage

To use it, simply add this to your Cargo.toml:

toml [dependencies] sdbm = "*"

Using it is as simple as:

rust fn main() { dbg!(sdbm::sdbm_hash("Hello, Rustaceans!")); }

This will print:

rust [src/main.rs:2] sdbm::sdbm_hash("Hello, Rustaceans!") = 98379892