diff --git a/examples/rocket/src/main.rs b/examples/rocket/src/main.rs index e19ef2c..97630d7 100644 --- a/examples/rocket/src/main.rs +++ b/examples/rocket/src/main.rs @@ -1,3 +1,4 @@ +#![recursion_limit = "256"] #![feature(proc_macro_hygiene, decl_macro)] extern crate rocket; diff --git a/examples/wasm/src/main.rs b/examples/wasm/src/main.rs index cf3e1f4..4ad6b25 100644 --- a/examples/wasm/src/main.rs +++ b/examples/wasm/src/main.rs @@ -1,3 +1,5 @@ +#![recursion_limit = "256"] + extern crate stdweb; extern crate typed_html; extern crate typed_html_macros; diff --git a/macros/Cargo.toml b/macros/Cargo.toml index 7b25539..d835d3e 100644 --- a/macros/Cargo.toml +++ b/macros/Cargo.toml @@ -18,7 +18,7 @@ proc-macro = true lalrpop-util = "0.16.1" ansi_term = "0.11.0" proc-macro2 = { version = "0.4.24", features = ["nightly"] } -proc-macro-hack = "0.5.1" +proc-macro-hack = "0.5.2" quote = "0.6.10" [build-dependencies] diff --git a/typed-html/Cargo.toml b/typed-html/Cargo.toml index cb64c9a..90b4ed1 100644 --- a/typed-html/Cargo.toml +++ b/typed-html/Cargo.toml @@ -23,4 +23,5 @@ language-tags = "0.2.2" http = "0.1.13" htmlescape = "0.3.1" stdweb = "0.4.10" -proc-macro-hack = "0.5.1" +proc-macro-hack = "0.5.2" +proc-macro-nested = "0.1.0" diff --git a/typed-html/src/lib.rs b/typed-html/src/lib.rs index 94e6061..b7357cc 100644 --- a/typed-html/src/lib.rs +++ b/typed-html/src/lib.rs @@ -4,6 +4,7 @@ //! # Quick Preview //! //! ``` +//! # #![recursion_limit = "128"] //! # use typed_html::{html, for_events}; //! # use typed_html::dom::{DOMTree, VNode}; //! # use typed_html::types::Metadata; @@ -198,13 +199,14 @@ extern crate http; extern crate language_tags; extern crate mime; extern crate proc_macro_hack; +extern crate proc_macro_nested; extern crate stdweb; extern crate strum; extern crate typed_html_macros; use proc_macro_hack::proc_macro_hack; -#[proc_macro_hack] +#[proc_macro_hack(support_nested)] pub use typed_html_macros::html; pub mod dom;