mac-addr
Lightweight and dependency-free MAC address type for Rust.
Supports no_std, serde, and alloc environments.
Overview
mac-addr provides a minimal MacAddr
type representing a 48-bit IEEE EUI-48 hardware address.
It’s designed for portability and low-level use:
- no_std compatible
- Optional
allocfor string formatting - Optional
serdesupport for serialization and deserialization - Small, efficient, and FFI-safe
Features
| Feature | Default | Description |
|---|---|---|
std |
✅ | Use Rust standard library |
alloc |
⬜ | Enable heap allocation for MacAddr::address() |
serde |
⬜ | Add serde::Serialize / Deserialize implementations |