Registry / networking / mac-address

mac-address

JSON →
library1.1.8rscratesunverified

Cross-platform retrieval of a network interface's MAC address.

# Cargo.toml [dependencies] mac_address = "1.1.8"
INSTALL
IMPORT
SIG · MAC-ADDRESS
M
mac-address
networkingrustv1.1.8
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

get_mac_address
use mac_address::get_mac_address;

Retrieve the MAC address of the primary network interface.

use mac_address::get_mac_address; fn main() { match get_mac_address() { Ok(Some(addr)) => println!("MAC: {}", addr), Ok(None) => println!("No MAC address found"), Err(e) => eprintln!("Error: {}", e), } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.1.8latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
mac-address — cargo add mac-address · libregistry