3 releases

Uses old Rust 2015

0.1.2 Aug 25, 2016
0.1.1 Jun 26, 2016
0.1.0 Jun 26, 2016

#7 in #luhn

22 downloads per month

WTFPL license

4KB
67 lines

rust-luhn2

![Image of Travis CI build status] (https://travis-ci.org/lunemec/rust-luhn.svg?branch=master) Crates.io (https://img.shields.io/crates/v/luhn2.svg)

Performs a Luhn algorithm check on given number, returns true/false.

It is luhn2 because there already is a luhn package but poorly documented and with almost no tests (looks like first rust try).

Documentation

Usage

Add this to your Cargo.toml:

[dependencies]
luhn2 = "0.1"

and this to your crate root:

extern crate luhn2;
use luhn2::validate;

Dependencies

~185–255KB