| 1 | //! # referencing |
| 2 | //! |
| 3 | //! An implementation-agnostic JSON reference resolution library for Rust. |
| 4 | mod anchors; |
| 5 | mod cache; |
| 6 | mod error; |
| 7 | mod list; |
| 8 | pub mod meta; |
| 9 | mod registry; |
| 10 | mod resolver; |
| 11 | mod resource; |
| 12 | mod retriever; |
| 13 | mod segments; |
| 14 | mod specification; |
| 15 | pub mod uri; |
| 16 | mod vocabularies; |
| 17 | |
| 18 | pub(crate) use anchors::Anchor; |
| 19 | pub use error::{Error, UriError}; |
| 20 | pub use fluent_uri::{Iri, IriRef, Uri, UriRef}; |
| 21 | pub use list::List; |
| 22 | pub use registry::{parse_index, pointer, Registry, RegistryOptions, SPECIFICATIONS}; |
| 23 | pub use resolver::{Resolved, Resolver}; |
| 24 | pub use resource::{unescape_segment, Resource, ResourceRef}; |
| 25 | pub use retriever::{DefaultRetriever, Retrieve}; |
| 26 | pub(crate) use segments::Segments; |
| 27 | pub use specification::Draft; |
| 28 | pub use vocabularies::{Vocabulary, VocabularySet}; |
| 29 | |
| 30 | #[cfg(feature = "retrieve-async")] |
| 31 | pub use retriever::AsyncRetrieve; |