Skip to content

Commit

Permalink
Re-export web-sys (#1176)
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 authored May 5, 2020
1 parent 1025000 commit 377a337
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 @@ -125,6 +125,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 377a337

Please sign in to comment.