#ieee #csv #cache #registry #registration #public #lookup

bin+lib ieee-registry

A Rust crate to cache the IEEE public registries as csv

3 unstable releases

0.2.0 Jan 1, 2024
0.1.1 Dec 31, 2023
0.1.0 Dec 31, 2023

#121 in Caching

Download history 7/week @ 2023-12-31 3/week @ 2024-02-18 30/week @ 2024-02-25 3/week @ 2024-03-03 5/week @ 2024-03-10 6/week @ 2024-03-17 47/week @ 2024-03-31

58 downloads per month

Custom license and CC-PDDC licenses

14KB
186 lines

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.

Dependencies

~4–18MB
~253K SLoC