use-mac
use-mac provides small helpers for parsing, formatting, and normalizing MAC addresses.
Experimental: this crate is below 0.3.0 and the API may change.
Example Usage
use ;
let mac = parse_mac_address.unwrap;
assert_eq!;
assert_eq!;
Scope
- Parsing common MAC address formats.
- Formatting helpers for colon and hyphen output.
- Small helpers for broadcast and zero-address checks.
Non-goals
- Vendor lookup.
- Network adapter inspection.
- Packet parsing.
License
Licensed under MIT OR Apache-2.0.