#mac-address #mac #manufacturer #networking

rsmanuf

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

8 stable releases

2.1.2 Apr 8, 2024
2.1.1 Feb 2, 2024
2.1.0 Jan 10, 2024
2.0.6 Dec 20, 2023
1.0.2 Oct 21, 2023

#1471 in Network programming

Download history 5/week @ 2024-01-05 3/week @ 2024-02-02 1/week @ 2024-02-16 7/week @ 2024-02-23 88/week @ 2024-03-01 16/week @ 2024-03-08 26/week @ 2024-03-15 5/week @ 2024-03-29 94/week @ 2024-04-05

126 downloads per month

Custom license

570KB
79 lines

rsmanuf

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

Discord Server 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

Example Usage

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)
        }
    }
}

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.2–3MB
~53K SLoC