1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//! This crate provides functions for validating IRIs and IRI references,
//! as well as for resolving IRI references agains a given base IRI.
//!
//! It is developed as a part of [Sophia],
//! an [RDF] and [Linked Data] toolkit in Rust,
//! but can be used independantly.
//!
//! # Feature gates
//!
//! - **test_data** exposes the [`test`](`mod@test`) module,
//!   which contains arrays of good and bad IRIs,
//!   useful for testing purposes, possibly in other crates.
//!
//! - **examples** exposes the [`wrap_macro_examples`] module,
//!   whose role is to exemplify the effect of the [`wrap`] macro.
//!
//! [Sophia]: https://docs.rs/sophia/latest/sophia/
//! [RDF]: https://www.w3.org/TR/rdf-primer/
//! [Linked Data]: http://linkeddata.org/

#![deny(missing_docs)]

mod _wrap_macro;

mod _error;
pub use _error::*;
mod _regex;
pub use self::_regex::*;
mod _trait;
pub use self::_trait::*;
mod _wrapper;
pub use _wrapper::*;
#[cfg(feature = "serde")]
mod _serde;

pub mod resolve;

#[cfg(feature = "examples")]
pub mod wrap_macro_examples;

#[cfg(any(test, feature = "test_data"))]
pub mod test;