From 40fb97f9d55bbf3630651e4138339021bddd942f Mon Sep 17 00:00:00 2001 From: Franck Royer Date: Mon, 4 May 2020 08:35:55 +1000 Subject: [PATCH] Re-export web-sys This would allow user to use web-sys functions such as console.log without having to add the web-sys dependency to their Cargo.toml. --- yew/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/yew/src/lib.rs b/yew/src/lib.rs index f0f703bec38..507897e8c26 100644 --- a/yew/src/lib.rs +++ b/yew/src/lib.rs @@ -114,6 +114,9 @@ pub mod agent; #[cfg(feature = "services")] pub mod services; +#[cfg(feature = "web_sys")] +pub use web_sys; + /// The module that contains all events available in the framework. pub mod events { use cfg_if::cfg_if;