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
43
44
45
46
47
48
49
#![doc(
html_logo_url = "https://raw.githubusercontent.com/ivanceras/sauron/master/assets/sauron.png"
)]
#![deny(clippy::all)]
#![deny(
warnings,
missing_docs,
missing_copy_implementations,
trivial_casts,
trivial_numeric_casts,
unstable_features,
unused_import_braces
)]
use cfg_if::cfg_if;
cfg_if! {if #[cfg(feature = "with-dom")] {
pub use sauron_core::dom;
pub use sauron_core::dom::*;
pub use sauron_core::web_sys;
pub use sauron_core::wasm_bindgen;
pub use sauron_core::{Component, Cmd, Program};
pub use sauron_core::js_sys;
}}
pub mod prelude {
pub use sauron_core::prelude::*;
#[cfg(feature = "with-node-macro")]
pub use sauron_node_macro::node;
}
pub use sauron_core::{
diff, html, jss, mt_dom, svg, Attribute, Callback, Element, Node, Patch,
Render, Text,
};
#[cfg(feature = "sauron-parse")]
pub use sauron_parse::parser;
pub use sauron_core::serde_json;
#[cfg(any(feature = "with-markdown", feature = "with-lite-markdown"))]
pub use sauron_markdown::markdown;
#[cfg(feature = "with-node-macro")]
pub use sauron_node_macro::node;