Crates.io | luhn2 |
lib.rs | luhn2 |
version | 0.1.2 |
source | src |
created_at | 2016-06-26 16:46:50.514002 |
updated_at | 2016-08-25 12:32:14.648609 |
description | Luhn algorithm check. |
homepage | https://github.com/lunemec/rust-luhn |
repository | https://github.com/lunemec/rust-luhn |
max_upload_size | |
id | 5503 |
size | 6,421 |
![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).
Add this to your Cargo.toml
:
[dependencies]
luhn2 = "0.1"
and this to your crate root:
extern crate luhn2;
use luhn2::validate;