2 stable releases
Uses old Rust 2015
| 1.1.0 | Aug 6, 2016 |
|---|---|
| 1.0.0 | Aug 6, 2016 |
#7 in #10
48 downloads per month
3KB
Luhn (Mod 10)
A fast and simple in-place implementation of the luhn check algorithm in Rust. Implementations in other languages can be found at github.com/luhnmod10.
Usage
Add the crate to your Cargo.toml:
[dependencies]
luhnmod10 = "1.0.0"
Then:
extern crate luhnmod10;
luhnmod10::valid(number);
Contributing
Contributions are welcome! If you can improve the execution time of this implementation without increasing its complexity, please open a pull request. To test your change, run make in the repository to run the tests and the benchmarks.