| Crates.io | as2org-rs |
| lib.rs | as2org-rs |
| version | 1.0.0 |
| created_at | 2024-06-24 20:50:50.367399+00 |
| updated_at | 2025-04-04 19:43:30.660883+00 |
| description | A library helps accessing CAIDA's as-to-organization mapping data. |
| homepage | |
| repository | https://github.com/bgpkit/as2org-rs |
| max_upload_size | |
| id | 1282559 |
| size | 73,638 |
as2org-rs: utility crate for accessing CAIDA AS to organization mappingThis readme is generated from the library's doc comments using cargo-readme. Please refer to the Rust docs website for the full documentation
As2orgAsInfo:
asn: the AS numbername: the name provide for the individual AS numbercountry_code: the country code of the organization's registration countryorg_id: maps to an organization entryorg_name: the name of the organizationsource: the RIR or NIR database which was contained this entryuse as2org_rs::As2org;
let as2org = As2org::new(None).unwrap();
dbg!(as2org.get_as_info(400644).unwrap());
dbg!(as2org.get_siblings(15169).unwrap());
assert!(as2org.are_siblings(15169, 36040));
MIT