Crates.io | luhny |
lib.rs | luhny |
version | 0.3.0 |
source | src |
created_at | 2023-08-04 21:47:33.909685 |
updated_at | 2023-08-06 00:00:31.54824 |
description | My Rustacean implementation of the Luhn algorithm for IMEI numbers. |
homepage | https://github.com/angeldollface/luhny-rs |
repository | https://github.com/angeldollface/luhny-rs |
max_upload_size | |
id | 935665 |
size | 25,130 |
My Rustacean implementation of the Luhn algorithm for IMEI numbers.
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.
To use Luhny.rs in your Rust project, add this line to your project's dependencies in the project's Cargo.toml
:
luhny = "0.3.0"
Make sure you have Rust and Git installed to run the following command from a terminal session:
cargo install luhny
This command will put the luhny
executable on your path and install everything properly.
Alternatively, you can download a compiled binary for 64-bit systems from this repository's Releases section.
To understand how to use Luhny.rs in your project, please refer to the project's documentation.
luhny -v
# OR
luhny --version
# OR
luhny version
luhny -h
# OR
luhny --help
# OR
luhny help
luhny -i 353879234252633
# OR
luhny --inn 353879234252633
# OR
luhny inn 353879234252633