#mac-address #manufacturer #networking #mac #manufacturer-of-mac

rsmanuf

📇 A very simple Rust library to get the manufacturer of a specific MAC address

24 stable releases

new 2025.6.1 Jun 1, 2025
2025.4.1 Apr 1, 2025
2025.3.1 Mar 1, 2025
2024.12.1 Dec 1, 2024
1.0.2 Oct 21, 2023

#457 in Network programming

Download history 298/week @ 2025-02-05 70/week @ 2025-02-12 21/week @ 2025-02-19 159/week @ 2025-02-26 9/week @ 2025-03-05 82/week @ 2025-03-26 45/week @ 2025-04-02 4/week @ 2025-04-09 5/week @ 2025-04-16 136/week @ 2025-04-30 23/week @ 2025-05-07 25/week @ 2025-05-14 4/week @ 2025-05-21

188 downloads per month

Custom license

615KB
190 lines

rsmanuf

Discord Server Badge Docs.rs Badge Crates.io Badge CI Badge Dependency Status Badge

Last Commit Badge Conventional Commits Badge


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 online feature 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–14MB
~165K SLoC