Crates.io | bgpq3 |
lib.rs | bgpq3 |
version | 0.1.0 |
source | src |
created_at | 2021-03-12 20:40:26.838971 |
updated_at | 2021-05-09 10:00:28.03793 |
description | A wrapper around the bgpq3/bgpq4 binary |
homepage | |
repository | https://github.com/rappet/rust_bgpq3 |
max_upload_size | |
id | 367907 |
size | 40,775 |
This library provides a thing wrapper around the bgpq3
/bgpq4
binary.
bgpq3 AS-Set
extern crate bgpq3;
pub fn main() {
let networks = bgpq3::Bgpq3::new().query_v6("AS-RAPPET").unwrap();
println!("{:?}", networks);
}
bgpq3 ASN
extern crate bgpq3;
pub fn main() {
let networks = bgpq3::Bgpq3::new().query_v6(207968).unwrap();
println!("{:?}", networks);
}
bgpq4
extern crate bgpq3;
use bgpq3::Bgpq3;
pub fn main() {
let networks = Bgpq3::bgpq4().query_v6("AS-RAPPET").unwrap();
println!("{:?}", networks);
}
tokio
for async process invocation.