macnuf

Crates.iomacnuf
lib.rsmacnuf
version0.1.32+20250922
created_at2025-02-12 13:42:34.069517+00
updated_at2025-09-22 06:18:01.217085+00
descriptionA #![no_std] Rust library to get the manufacturer of a specific MAC address
homepage
repositoryhttps://github.com/erk-/macnuf
max_upload_size
id1553022
size2,053,985
Erk (Erk-)

documentation

https://docs.rs/macnuf

README

macnuf

A very simple #![no_std] 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 macnuf

Example Usage

To get a manufacturer, you simply need to do the following

fn main() {
    match macnuf::lookup("00:18:23:ac:09:02".parse().unwrap()) {
        Some(manuf) => {
            println!("Manufacturer: {}", manuf)
        }
        None => {
            println!("No manufacturer found")
        }
    }
}

License

This library is under the MIT License.

Acknowledgement

This library is based upon rsmanuf by Krypton.

Commit count: 43

cargo fmt