#mac-address #networking #manufacturer #manuf

no-std macnuf

A #![no_std] Rust library to get the manufacturer of a specific MAC address

14 releases

new 0.1.12+20250505 May 5, 2025
0.1.11+20250428 Apr 28, 2025
0.1.7+20250331 Mar 31, 2025
0.1.2+20250224 Feb 24, 2025
0.0.0+20250210 Feb 12, 2025

#513 in Network programming

Download history 223/week @ 2025-02-09 161/week @ 2025-02-16 130/week @ 2025-02-23 156/week @ 2025-03-02 123/week @ 2025-03-09 128/week @ 2025-03-16 128/week @ 2025-03-23 124/week @ 2025-03-30 143/week @ 2025-04-06 118/week @ 2025-04-13 123/week @ 2025-04-20 117/week @ 2025-04-27

506 downloads per month

Custom license

600KB
224 lines

This crate works by building a match at compile time which is then used to lookup in.


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.

Dependencies