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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#![deny(
warnings,
missing_docs,
missing_copy_implementations,
trivial_casts,
trivial_numeric_casts,
unstable_features,
unused_import_braces
)]
#[macro_use]
extern crate doc_comment;
use cfg_if::cfg_if;
cfg_if! {if #[cfg(feature = "with-dom")] {
pub mod dom;
pub use dom::*;
pub use web_sys;
pub use wasm_bindgen;
pub use js_sys;
}}
pub use serde_json;
cfg_if! {if #[cfg(not(feature = "with-dom"))] {
pub type Event = ();
}}
#[macro_use]
pub mod html;
#[macro_use]
pub mod svg;
#[macro_use]
pub mod jss;
mod render;
pub mod vdom;
pub use render::Render;
pub use mt_dom;
pub mod prelude {
pub use crate::{
html::{
attributes::{attr, *},
tags::{commons::*, *},
units::*,
*,
},
svg::{attributes::*, tags::commons::*, *},
vdom::*,
*,
};
pub use render::Render;
pub use serde_json;
pub use vdom::map_msg::{AttributeMapMsg, ElementMapMsg, NodeMapMsg};
#[cfg(feature = "with-dom")]
pub use wasm_bindgen::prelude::*;
#[cfg(feature = "with-dom")]
pub use web_sys;
}
pub use mt_dom::Text;
pub use vdom::*;