diff --git a/examples/rsx_usage.rs b/examples/rsx_usage.rs index fb7bb623c..23ab19cf9 100644 --- a/examples/rsx_usage.rs +++ b/examples/rsx_usage.rs @@ -1,5 +1,4 @@ #![allow(non_snake_case)] - //! A tour of the rsx! macro //! ------------------------ //! @@ -39,7 +38,7 @@ //! - Accept a list of vnodes as children for a Fragment component //! - Allow keyed fragments in iterators //! - Allow top-level fragments -//! + fn main() { dioxus_desktop::launch(app); } diff --git a/packages/core-macro/Cargo.toml b/packages/core-macro/Cargo.toml index f9b97a436..e8dd1e1ef 100644 --- a/packages/core-macro/Cargo.toml +++ b/packages/core-macro/Cargo.toml @@ -18,7 +18,7 @@ proc-macro = true proc-macro2 = { version = "1.0" } quote = "1.0" syn = { version = "1.0", features = ["full", "extra-traits"] } -dioxus-rsx = { path = "../rsx" } +dioxus-rsx = { path = "../rsx", version = "0.0.1" } # testing [dev-dependencies] diff --git a/packages/core-macro/src/lib.rs b/packages/core-macro/src/lib.rs index 475000016..4e4f5600a 100644 --- a/packages/core-macro/src/lib.rs +++ b/packages/core-macro/src/lib.rs @@ -26,11 +26,6 @@ pub fn derive_typed_builder(input: proc_macro::TokenStream) -> proc_macro::Token } /// The rsx! macro makes it easy for developers to write jsx-style markup in their components. -/// -/// ## Complete Reference Guide: -/// ```ignore -#[doc = include_str!("../../../examples/rsx_usage.rs")] -/// ``` #[proc_macro] pub fn rsx(s: TokenStream) -> TokenStream { match syn::parse::(s) { @@ -42,11 +37,6 @@ pub fn rsx(s: TokenStream) -> TokenStream { /// The render! macro makes it easy for developers to write jsx-style markup in their components. /// /// The render macro automatically renders rsx - making it unhygenic. -/// -/// ## Complete Reference Guide: -/// ```ignore -#[doc = include_str!("../../../examples/rsx_usage.rs")] -/// ``` #[proc_macro] pub fn render(s: TokenStream) -> TokenStream { match syn::parse::(s) { diff --git a/packages/dioxus/src/lib.rs b/packages/dioxus/src/lib.rs index 86adae336..fed3d2bd5 100644 --- a/packages/dioxus/src/lib.rs +++ b/packages/dioxus/src/lib.rs @@ -1,5 +1,3 @@ -#![doc = include_str!("../../../notes/README.md")] - pub use dioxus_core as core; #[cfg(feature = "hooks")] diff --git a/packages/rsx/Cargo.toml b/packages/rsx/Cargo.toml index 40b785b6e..40637eff8 100644 --- a/packages/rsx/Cargo.toml +++ b/packages/rsx/Cargo.toml @@ -1,8 +1,13 @@ [package] name = "dioxus-rsx" -version = "0.0.0" +version = "0.0.1" edition = "2018" license = "MIT/Apache-2.0" +description = "Core functionality for Dioxus - a concurrent renderer-agnostic Virtual DOM for interactive user experiences" +repository = "https://github.com/DioxusLabs/dioxus/" +homepage = "https://dioxuslabs.com" +documentation = "https://docs.rs/dioxus-rsx" +keywords = ["dom", "ui", "gui", "react", "wasm"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -10,5 +15,4 @@ license = "MIT/Apache-2.0" proc-macro2 = { version = "1.0", features = ["span-locations"] } syn = { version = "1.0", features = ["full", "extra-traits"] } quote = { version = "1.0" } -dioxus-core = { path = "../core", features = ["serialize"] } serde = { version = "1.0", features = ["derive"] }