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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
#![warn(clippy::clone_on_ref_ptr)]
#![warn(clippy::rc_buffer)]
#![warn(clippy::semicolon_if_nothing_returned)]
#![warn(missing_docs)]
#![warn(rust_2018_idioms)]
#![deny(clippy::trait_duplication_in_bounds)]
#![deny(clippy::type_repetition_in_bounds)]
#![deny(missing_debug_implementations)]
#[allow(unused_extern_crates)] extern crate self as sycamore;
pub mod builder;
pub mod easing;
pub mod flow;
#[cfg(feature = "suspense")]
pub mod futures;
pub mod motion;
#[cfg(feature = "suspense")]
pub mod suspense;
pub mod utils;
#[cfg(feature = "web")]
pub mod web;
pub use sycamore_core::{component, generic_node, noderef, view};
pub use sycamore_macro::*;
pub mod reactive {
pub use sycamore_reactive::*;
}
#[cfg(feature = "ssr")]
pub use web::render_to_string;
#[cfg(all(feature = "ssr", feature = "suspense"))]
pub use web::render_to_string_await_suspense;
#[cfg(all(feature = "web", feature = "hydrate"))]
pub use web::{hydrate, hydrate_get_scope, hydrate_to};
#[cfg(feature = "web")]
pub use web::{render, render_get_scope, render_to};
pub mod prelude {
pub use sycamore_macro::*;
pub use crate::component::Children;
pub use crate::flow::*;
pub use crate::generic_node::GenericNode;
pub use crate::noderef::{create_node_ref, NodeRef};
pub use crate::reactive::*;
pub use crate::view::View;
#[cfg(feature = "web")]
pub use crate::web::on_mount;
#[cfg(all(feature = "web", feature = "hydrate"))]
pub use crate::web::HydrateNode;
#[cfg(feature = "ssr")]
pub use crate::web::SsrNode;
#[cfg(feature = "web")]
pub use crate::web::{DomNode, Html};
}
#[doc(hidden)]
pub mod rt {
#[cfg(feature = "web")]
pub use js_sys::Reflect;
#[cfg(feature = "web")]
pub use wasm_bindgen::{intern, JsCast, JsValue};
#[cfg(feature = "web")]
pub use web_sys::Event;
}