eui-no-std

crates.io Build Status codecov

EUI-48 and EUI-64 no-std implementation using heapless.

Usage

Add this to your Cargo.toml:

toml [dependencies] eui-no-std = "0.2"

Or if u interested in serde enable optional feature:

toml [dependencies] eui-no-std = { version = "0.2", default-features = false, features = ["serde"] }

Example

```rust use eui::Eui48; use eui::Eui64;

let eui48 = Eui48::from(85204980412143); let eui64 = Eui64::from(eui48);

asserteq!(eui48.tostring(), "4d7e54972eef"); asserteq!(eui64.tostring(), "4d7e540000972eef"); ```