This repository contains open source code written by the Internet Corporation for Assigned Names and Numbers (ICANN) for use with the Registry Data Access Protocol (RDAP). RDAP is standard of the IETF, and extensions to RDAP are a current work activity of the IETF's REGEXT working group.
THIS PROJECT IS IN ALPHA STAGE. You are welcome to use it and file issues or bug reports, however there are no guarantees as to timeliness of responses.
Add the library to your Cargo.toml: cargo add icann-rdap-common
.
This library can be compiled for WASM targets.
```rust // create an RDAP domain use icannrdapcommon::response::domain::Domain; let domain = Domain::basic().ldh_name("example.com").build();
// create an IP network use cidrutils::cidr::IpCidr; let cidr = IpCidr::fromstr("10.0.0.0/16").unwrap(); use icannrdapcommon::response::network::Network; let net = Network::basic().cidr(cidr).build();
// create a nameserver use icannrdapcommon::response::nameserver::Nameserver; let ns = Nameserver::basic().ldh_name("ns1.example.com").build();
// create an autnum use icannrdapcommon::response::autnum::Autnum; let autnum = Autnum::basic().autnum(700).build();
// create an entity use icannrdapcommon::response::entity::Entity; let entity = Entity::basic().handle("foo-BAR").build(); ```
Licensed under either of * Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0) * MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT) at your option.
Unless you explicitly state otherwise, any contribution, as defined in the Apache-2.0 license, intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed pursuant to the Apache License, Version 2.0 or the MIT License referenced as above, at ICANN’s option, without any additional terms or conditions.