Bug: 182952190

Clone this repo:
  1. f7612d7 Refresh Android.bp, cargo2android.json, TEST_MAPPING. am: eb7f6ecc7a am: 1c6862cf90 am: 9398cff3a3 by Joel Galenson · 5 months ago master
  2. 9398cff Refresh Android.bp, cargo2android.json, TEST_MAPPING. am: eb7f6ecc7a am: 1c6862cf90 by Joel Galenson · 5 months ago
  3. 1c6862c Refresh Android.bp, cargo2android.json, TEST_MAPPING. am: eb7f6ecc7a by Joel Galenson · 5 months ago
  4. eb7f6ec Refresh Android.bp, cargo2android.json, TEST_MAPPING. by Joel Galenson · 6 months ago android-s-qpr3-beta-1 android-s-v2-beta-3 android-t-preview-1 android-s-qpr3-beta-1 android-s-v2-beta-3 android-t-preview-1 android-t-preview-2
  5. 7e833aa [LSC] Add LOCAL_LICENSE_KINDS to external/rust/crates/macaddr am: 2d74fc9cd0 am: 08516f7882 am: eb89a7cfdf by Bob Badour · 1 year, 2 months ago android-s-v2-preview-1 android12-dev android12-qpr1-d-release android12-qpr1-d-s1-release android12-qpr1-d-s2-release android12-qpr1-d-s3-release android12-qpr1-release android12L-dev android-12.0.0_r16 android-12.0.0_r18 android-12.0.0_r19 android-12.0.0_r20 android-12.0.0_r21 android-12.0.0_r26 android-12.0.0_r27 android-12.0.0_r28 android-12.0.0_r29 android-12.0.0_r32 android-s-v2-beta-2 android-s-v2-preview-1 android-s-v2-preview-2

macaddr

MAC address types for Rust

Latest Version Latest Version Build Status Coverage Status Minimum rustc version Apache 2.0 OR MIT licensed unsafe forbidden

This crate provides types for a MAC address identifiers, both in IEEE EUI-48 and EUI-64 formats.

It is like a std::net::SocketAddr enum with a std::net::SocketAddrV4 and std::net::SocketAddrV6 members, but for MAC addresses instead.

Obviously, MAC address can be represented as a [u8; 6] or [u8; 8], but it is error-prone and inconvenient, so here they are — MacAddr6 and MacAddr8 structs with helpful methods and standard Rust traits implementations, intended to be the first-class Rust objects.

And it is serde- and no_std-friendly also!

Installation

Add this to your Cargo.toml

[dependencies]
macaddr = "1.0"

Usage

Check out the documentation for each type available, all of them have a plenty of examples.

License

Licensed under either of Apache License 2.0 or MIT license at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.