32 stable releases (3 major)
| 2026.1.1 | Jan 1, 2026 |
|---|---|
| 2025.12.1 | Dec 1, 2025 |
| 2025.11.1 | Nov 1, 2025 |
| 2025.7.1 | Jul 1, 2025 |
| 1.0.2 |
|
#649 in Network programming
640KB
174 lines
A very simple Rust library to get the manufacturer of a specific MAC address
Getting Started
Installation
If you want to use this library for one of your projects, you can install it like any other Rust crate
cargo add rsmanuf
If you want to have the online indexing method to always use the most up to date version of the manuf.txt file, you need to install it with the online feature:
cargo add rsmanuf --features online
Versioning
The versioning of the library is the following: YYYY.MM.DD where the leading 0 is removed from the version due to Crates.io not wanting leading zeroes.
Versions are automatically released every month on the first day of that month.
Example Usage
Offline Lookup (preferred)
fn main() {
match rsmanuf::lookup("C4:A8:1D:73:D7:8C") {
Ok(manuf) => {
println!("Manufacturer: {}", manuf)
}
Err(error) => {
println!("Error: {}", error)
}
}
}
Online Lookup
[!NOTE] The
onlinefeature needs to be enabled.
fn main() {
match rsmanuf::online::lookup("C4:A8:1D:73:D7:8C") {
Ok(manuf) => {
println!("Manufacturer: {}", manuf)
}
Err(error) => {
println!("Error: {}", error)
}
}
}
Troubleshooting
If you have problems using the crate, you can open up an issue or join my Discord server.
Contributing
People may contribute by following the Contributing Guidelines and the Code of Conduct
License
This library was made with 💜 by Krypton and is under the MIT License.
Dependencies
~2–18MB
~167K SLoC