allow rsx to be used outside of a proc_macro context

This commit is contained in:
Evan Almloff committed 2022-05-28 12:10:32 -05:00
1 parent 4b1ea5879d
commit 06390b9be5
8 files changed
+30 -46

No files matched your search

+3 -3
View File
@@ -15,10 +15,9 @@ keywords = ["dom", "ui", "gui", "react", "wasm"]
proc-macro = true
[dependencies]
proc-macro-error = "1"
proc-macro2 = { version = "1.0.6" }
proc-macro2 = { version = "1.0" }
quote = "1.0"
syn = { version = "1.0.11", features = ["full", "extra-traits"] }
syn = { version = "1.0", features = ["full", "extra-traits"] }
dioxus-rsx = { path = "../rsx" }
dioxus-rsx-interperter = { path = "../rsx_interperter", optional = true }
@@ -28,4 +27,5 @@ rustversion = "1.0"
trybuild = "1.0"
[features]
default = []
hot_reload = ["dioxus-rsx-interperter"]
-1
View File
@@ -177,7 +177,6 @@ pub fn derive_typed_builder(input: proc_macro::TokenStream) -> proc_macro::Token
/// todo!()
/// }
/// ```
#[proc_macro_error::proc_macro_error]
#[proc_macro]
pub fn rsx(s: TokenStream) -> TokenStream {
#[cfg(feature = "hot_reload")]