crc64-rs

Crates.iocrc64-rs
lib.rscrc64-rs
version0.2.0
sourcesrc
created_at2014-11-22 13:50:44.875977
updated_at2015-12-11 23:58:31.338387
descriptionDEPRECATED: Use crc64 instead
homepagehttps://github.com/badboy/crc64-rs
repository
max_upload_size
id341
size54,279
Engine Devs (github:amethyst:engine-devs)

documentation

README

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.

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.

Commit count: 0

cargo fmt