Crates.io | crc64 |
lib.rs | crc64 |
version | 2.0.0 |
source | src |
created_at | 2015-01-23 18:21:56.637343 |
updated_at | 2022-02-27 20:52:11.857783 |
description | CRC64 checksum implementation |
homepage | https://github.com/badboy/crc64-rs |
repository | https://github.com/badboy/crc64-rs |
max_upload_size | |
id | 859 |
size | 57,180 |
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.
cargo build --release
As a library:
crc64::crc64(0, "123456789".as_bytes());
Install as a standalone application:
cargo install crc64
Use it:
crc64 src/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.