Debian Codegraph @

/

debian rust-crc64 2.0.0-1debian librust-crc64-dev debian librust-crc64+default-dev debian librust-crc64-2-dev debian librust-crc64-2+default-dev debian librust-crc64-2.0-dev debian librust-crc64-2.0+default-dev debian librust-crc64-2.0.0-dev debian librust-crc64-2.0.0+default-dev cargo crc64 2.0.0 debianjsonmakefilemarkdownrustrust-c-abishelltomlyaml 21 files · 87 symbols
View dependency graph

Depends on

  • dh-cargo (dh-sequence-cargo)
  • cargo, debhelper-compat, libstd-rust-dev, rustc
README (full)

CRC64

crates.io docs.rs docs License: MIT Build Status

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:

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

CLI

Install as a standalone application:

cargo install crc64

Use it:

crc64 src/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.

dir .github/
dir debian/
dir examples/
dir src/
file .cargo_vcs_info.json
file .gitignore
file .travis.yml
file CHANGELOG.md
file Cargo.lock
file Cargo.toml
file Cargo.toml.orig
file LICENSE
file README.md