Skip to content

Commit

Permalink
Re-export web-sys
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
D4nte committed May 3, 2020
1 parent 6bf58ab commit 40fb97f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions yew/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 40fb97f

Please sign in to comment.