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