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
#![deny(
    warnings,
    missing_docs,
    missing_copy_implementations,
    trivial_casts,
    trivial_numeric_casts,
    unstable_features,
    unused_import_braces
)]
#![allow(deprecated)]

//! The core components of sauron

#[macro_use]
pub mod html;
#[macro_use]
pub mod svg;
mod render;
pub mod vdom;

#[doc(hidden)]
pub use mt_dom;

#[macro_use]
extern crate doc_comment;

pub use crate::render::Render;
pub use crate::vdom::{
    diff,
    map_msg::{AttributeMapMsg, ElementMapMsg, NodeMapMsg},
    Attribute, Element, Listener, Node, Patch,
};
pub use crate::{
    html::{
        attributes,
        tags::commons::*,
        units::{self, ch, em, percent, pt, px, rem},
    },
    svg::tags::commons::*,
};

pub use jss;

pub mod dom;
pub use crate::dom::{Component, Container, Effects};

use cfg_if::cfg_if;

cfg_if! {if #[cfg(feature = "with-dom")] {
    pub use web_sys;
    pub use wasm_bindgen_futures;
    pub use js_sys;
    pub use wasm_bindgen;
    pub use wasm_bindgen::prelude::*;
    pub use crate::dom::{Application, events, Program, document, now, window, CustomElement, Cmd};
    pub use serde_wasm_bindgen;
}}