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
//! Smithy is a framework for writing WebAssembly applications entirely //! in Rust. //! Its goal is to allow you to do so using ergonomic, idiomatic Rust, //! without giving up any of the compiler’s safety guarantees. //! //! # Example //! //! ```rs //! let app = smd!(<div>hello world</div>); //! let el_opt = web_sys::window() //! .and_then(|w| w.document()) //! .query_selector("#app"); //! if let Some(el) = el_opt { //! smithy::mount(app, el); //! } //! ``` //! //! **N.B.** these docs omit `smd!` and `smd_borrowed!`, which are //! re-exported from the [`smd_macro`](/smd_macro/) crate. /// A module that re-exports useful Smithy types, and some others. pub mod types { pub use smithy_types::*; } pub use smd_macro::*; pub use smithy_core::*;