| 1 |
#![allow(rustdoc::bare_urls)] |
| 2 |
#![doc = include_str!("../README.md")] |
| 3 |
pub mod check; |
| 4 |
pub mod contact; |
| 5 |
pub mod dns_types; |
| 6 |
pub mod filter; |
| 7 |
pub mod httpdata; |
| 8 |
pub mod iana; |
| 9 |
pub mod media_types; |
| 10 |
pub mod rdns; |
| 11 |
pub mod response; |
| 12 |
pub mod rfc9839; |
| 13 |
|
| 14 |
pub use rfc9839::sanitize_rfc9839; |
| 15 |
|
| 16 |
/// Basics RDAP structures. |
| 17 |
pub mod prelude { |
| 18 |
#[doc(inline)] |
| 19 |
pub use crate::contact::*; |
| 20 |
#[doc(inline)] |
| 21 |
pub use crate::response::*; |
| 22 |
} |
| 23 |
|
| 24 |
#[cfg(debug_assertions)] |
| 25 |
use const_format::formatcp; |
| 26 |
|
| 27 |
/// Version of this software. |
| 28 |
#[cfg(not(any(target_arch = "wasm32", debug_assertions)))] |
| 29 |
pub const VERSION: &str = env!("CARGO_PKG_VERSION"); |
| 30 |
|
| 31 |
/// Version of this software. |
| 32 |
#[cfg(debug_assertions)] |
| 33 |
pub const VERSION: &str = formatcp!("{}_DEV_BUILD", env!("CARGO_PKG_VERSION")); |