badboy/crc64-rs


CRC64 "Jones" implementation in Rust

http://badboy.github.io/crc64-rs/

License: BSD-3-Clause

Language: Rust


CRC64

crates.io Build Status Clippy Linting Result

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.

Project Statistics

Sourcerank 5
Repository Size 563 KB
Stars 1
Forks 1
Watchers 1
Open issues 0
Dependencies 1
Contributors 5
Tags 4
Created
Last updated
Last pushed

Top Contributors See all

Jan-Erik Rediger Sebastian Waisbrot Homu Thijs Cadier not-a-robot

Packages Referencing this Repo

crc64
CRC64 checksum implementation
Latest release 1.0.0 - Updated - 1 stars
crc64-rs
DEPRECATED: Use crc64 instead
Latest release 0.2.0 - Updated - 1 stars

Recent Tags See all

v0.2.2 April 03, 2015
v0.2.1 January 23, 2015
v0.2.0 January 23, 2015
v0.1.0 November 22, 2014

Something wrong with this page? Make a suggestion

Last synced: 2016-05-27 17:17:07 UTC

Login to resync this repository