LUHNY.RS
My Rustacean implementation of the Luhn algorithm for IMEI numbers.
ABOUT
This is my Rustacean implementation of a package I wrote in ECMA Script a couple of months ago. (Link in the section below.) Both these packages do one thing: They provide functions for you to check whether the IMEI number of your smartphone is valid or not. The algorithm used here is the "Luhn" algorithm. Other implementations and web apps showcasing my implementations can be found in the section below. Enjoy.
LINKS
- Library implementation in ECMA Script: VIEW
- Web app implementation in Vue.js: VIEW
- Web app implementation in Yew.rs: VIEW
INSTALLATION
IN A RUST PROJECT
To use Luhny.rs in your Rust project, add this line to your project's dependencies in the project's Cargo.toml:
= "0.1.0"
AS A COMMAND LINE TOOL
Make sure you have Rust and Git installed to run the following command from a terminal session:
This command will put the luhny executable on your path and install everything properly.
USAGE
API
To understand how to use Luhny.rs in your project, please refer to the project's documentation.
COMMAND LINE
- Get version info:
# OR
# OR
- Get helpful info:
# OR
# OR
- Test the validity of an IMEI number:
# OR
# OR
CHANGELOG
Version 0.1.0
- Initial release.
- Upload to GitHub.
NOTE
- Luhny.rs by Alexander Abraham a.k.a. "Angel Dollface"
- Licensed under the MIT license.