Crates.io | rsmanuf |
lib.rs | rsmanuf |
version | 2.1.9 |
source | src |
created_at | 2023-10-21 10:36:48.63434 |
updated_at | 2024-10-31 23:02:00.879826 |
description | 📇 A very simple Rust library to get the manufacturer of a specific MAC address |
homepage | |
repository | https://github.com/kkrypt0nn/rsmanuf |
max_upload_size | |
id | 1009937 |
size | 1,950,136 |
A very simple Rust library to get the manufacturer of a specific MAC address
If you want to use this library for one of your projects, you can install it like any other Rust crate
cargo add rsmanuf
To get a manufacturer, you simply need to do the following
fn main() {
let index = rsmanuf::Index::new();
match index.search("C4:A8:1D:73:D7:8C") {
Ok(manuf) => {
println!("Manufacturer: {}", manuf)
}
Err(error) => {
println!("Error: {}", error)
}
}
}
If you have problems using the crate, you can open up an issue or join my Discord server.
People may contribute by following the Contributing Guidelines and the Code of Conduct
This library was made with 💜 by Krypton and is under the MIT License.