ieee-registry

Crates.ioieee-registry
lib.rsieee-registry
version0.2.0
sourcesrc
created_at2023-12-31 02:13:42.195179
updated_at2024-01-01 00:50:01.488954
descriptionA Rust crate to cache the IEEE public registries as csv.
homepagehttps://github.com/AdamIsrael/ieee-registry
repositoryhttps://github.com/AdamIsrael/ieee-registry
max_upload_size
id1084524
size46,132
Adam Israel (AdamIsrael)

documentation

https://github.com/AdamIsrael/ieee-registry

README

IEEE-Registry

Continuous integration

The IEEE-Registry crate provides a locally cached copy of the IEEE Registration Authority's public listings in the current users ~/.local/share/ieee/ directory in order to be used for lookup purposes.

The crate provides two ways of caching the IEEE registry public listings:

$ ieee-registry
Caching IEEE registry file(s)...
✔ /home/adam/.local/share/ieee/cid.csv
✔ /home/adam/.local/share/ieee/eth.csv
✔ /home/adam/.local/share/ieee/iab.csv
✔ /home/adam/.local/share/ieee/mam.csv
✔ /home/adam/.local/share/ieee/man.csv
✔ /home/adam/.local/share/ieee/opid.csv
✔ /home/adam/.local/share/ieee/oui.csv
✔ /home/adam/.local/share/ieee/oui36.csv

or programatically:

use ieee_registry::*;

// Get the path to oui.csv, downloading it if necessary.
let oui_path = get_oui_path();

Currently, we check the age of the downloaded file. If it's more than 30 days old, a new copy will be downloaded.

Commit count: 0

cargo fmt