V0.2 ASNames
What's new
- added AS name and country lookup
use std::collections::HashMap;
use bgpkit_commons::asnames::{AsName, get_asnames};
fn main() {
let asnames: HashMap<u32, AsName> = get_asnames().unwrap();
assert_eq!(asnames.get(&3333).unwrap().name, "RIPE-NCC-AS Reseaux IP Europeens Network Coordination Centre (RIPE NCC)");
assert_eq!(asnames.get(&400644).unwrap().name, "BGPKIT-LLC");
assert_eq!(asnames.get(&400644).unwrap().country, "US");
}Full Changelog: https://github.com/bgpkit/bgpkit-commons/commits/v0.2.0