4 releases
| 0.1.0 | May 9, 2021 |
|---|---|
| 0.1.0-alpha.3 | Mar 12, 2021 |
#19 in #asn
16KB
208 lines
Rust bgpq3
This library provides a thing wrapper around the bgpq3/bgpq4 binary.
Example
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);
}
Feature flags
tokiofor async process invocation.
Dependencies
~0.6–4MB
~73K SLoC