json_ld_syntax/
lib.rs

1//! This library provide functions to parse JSON-LD contexts
2//! and print JSON-LD documents.
3mod compact_iri;
4mod compare;
5pub mod container;
6pub mod context;
7mod direction;
8mod error;
9mod expandable;
10mod into_json;
11mod keyword;
12mod lang;
13mod nullable;
14mod print_ld;
15mod try_from_json;
16mod utils;
17
18pub use compact_iri::*;
19pub use compare::*;
20pub use container::{Container, ContainerKind};
21pub use context::{Context, ContextDocument, ContextEntry};
22pub use direction::*;
23pub use error::*;
24pub use expandable::*;
25pub use into_json::*;
26pub use json_syntax::{
27	object, parse, print, BorrowUnordered, Kind, Number, NumberBuf, Object, Parse, Print, String,
28	Unordered, UnorderedEq, UnorderedHash, UnorderedPartialEq, Value,
29};
30pub use keyword::*;
31pub use lang::*;
32pub use nullable::*;
33pub use try_from_json::*;
34
35#[cfg(feature = "serde")]
36pub use json_syntax::{from_value, to_value};
37
38#[derive(Clone, Copy, Debug)]
39pub struct Unexpected(json_syntax::Kind, &'static [json_syntax::Kind]);