crc64 0.2.1

CRC64 checksum implementation
docs.rs failed to build crc64-0.2.1
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: crc64-2.0.0

CRC64

A 5-line* CRC64 implementation in Rust.

*: Yes, I cheated a bit. It is antirez' implementation of the CRC64 algorithm for Redis, which basically consists of one huge table. See lib.rs for the exact constants used. Oh, since v0.2.0 I cheated even more. It's not 5 lines anymore, more like 25.

Build

cargo build --release

Usage

As a library:

use crc64::crc64;
crc64::crc64(0, "123456789".as_bytes());

As a standalone application:

$ ./target/release/crc64 src/crc64/lib.rs

Tests

Run tests with:

cargo test

Contribute

If you find bugs or want to help otherwise, please open an issue.

License

BSD. See LICENSE.
Redis and the code I used is also released under a BSD license. See crc64.c.