1#![no_std]
2extern crate alloc;
3
4#[cfg(feature = "std")]
5extern crate std;
6
7pub use text::Text;
9
10pub mod tree;
12
13pub mod identifier;
15
16pub mod text;
18
19pub mod value;
21
22pub mod document;
24
25pub use document::constructor;
27
28use crate::write::IntoEure;
29
30pub mod path;
32
33pub mod data_model;
35
36pub mod parse;
38
39pub mod write;
41
42pub mod plan;
45pub mod source;
50
51mod eure_macro;
53
54pub mod map;
55
56pub mod must_be;
58
59pub mod proxy;
61
62pub(crate) mod prelude_internal {
63 #![allow(unused_imports)]
64 #![allow(deprecated)]
65 pub use crate::data_model::*;
66 pub use crate::document::constructor::DocumentConstructor;
67 pub use crate::document::node::{Node, NodeMap, NodeMut, NodeValue};
68 pub use crate::document::{EureDocument, InsertError, InsertErrorKind, NodeId};
69 pub use crate::eure;
70 pub use crate::identifier::Identifier;
71 pub use crate::map::Map;
72 pub use crate::path::{ArrayIndexKind, EurePath, PathSegment};
73 pub use crate::text::{Language, SyntaxHint, Text, TextParseError};
74 pub use crate::value::{ObjectKey, PrimitiveValue};
75 pub use alloc::boxed::Box;
76 pub use alloc::{string::String, string::ToString, vec, vec::Vec};
77 pub use thisisplural::Plural;
78}
79
80impl IntoEure for regex::Regex {
81 type Error = write::WriteError;
82
83 fn write(value: Self, c: &mut constructor::DocumentConstructor) -> Result<(), Self::Error> {
84 c.write(value.as_str())
85 }
86}