Crates.io | crc64-rs |
lib.rs | crc64-rs |
version | 0.2.0 |
source | src |
created_at | 2014-11-22 13:50:44.875977 |
updated_at | 2015-12-11 23:58:31.338387 |
description | DEPRECATED: Use crc64 instead |
homepage | https://github.com/badboy/crc64-rs |
repository | |
max_upload_size | |
id | 341 |
size | 54,279 |
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.
cargo build --release
As a library:
use crc64::crc64;
crc64::crc64(0, "123456789".as_bytes());
As a standalone application:
$ ./target/release/crc64 src/crc64/lib.rs
Run tests with:
cargo test
If you find bugs or want to help otherwise, please open an issue.
BSD. See LICENSE.
Redis and the code I used is also released under a BSD license. See crc64.c.