From 2858503aa2908e721f430dac45246594a1e24509 Mon Sep 17 00:00:00 2001 From: Denis Kolodin Date: Tue, 28 May 2019 23:11:57 +0900 Subject: [PATCH] Add alias module for macro --- src/components/select.rs | 2 +- src/lib.rs | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/select.rs b/src/components/select.rs index 7ecf5f188b3..7d9cc04a34c 100644 --- a/src/components/select.rs +++ b/src/components/select.rs @@ -16,8 +16,8 @@ //! } use callback::Callback; -use html; use html::{ChangeData, Component, ComponentLink, Html, Renderable, ShouldRender}; +use macros::html; /// `Select` component. pub struct Select { diff --git a/src/lib.rs b/src/lib.rs index fc6895bbfbe..ce118629a88 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -92,6 +92,13 @@ extern crate yew_macro; #[macro_use] #[cfg(not(feature = "proc_macro"))] pub mod macros; + +#[cfg(feature = "proc_macro")] +/// Alias module for the procedural macro. +pub mod macros { + pub use yew_macro::html; +} + pub mod components; pub mod format; pub mod services;