lib.rs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #![doc = include_str!("../README.md")]
  2. #![doc(html_logo_url = "https://avatars.githubusercontent.com/u/79236386")]
  3. #![doc(html_favicon_url = "https://avatars.githubusercontent.com/u/79236386")]
  4. pub use dioxus_core as core;
  5. #[cfg(feature = "hooks")]
  6. pub use dioxus_hooks as hooks;
  7. pub mod events {
  8. #[cfg(feature = "html")]
  9. pub use dioxus_html::prelude::*;
  10. }
  11. #[cfg(feature = "html")]
  12. pub use dioxus_html as html;
  13. #[cfg(feature = "macro")]
  14. pub use dioxus_rsx as rsx;
  15. #[cfg(feature = "macro")]
  16. pub use dioxus_core_macro as core_macro;
  17. pub mod prelude {
  18. #[cfg(feature = "hooks")]
  19. pub use crate::hooks::*;
  20. pub use dioxus_core::prelude::*;
  21. #[cfg(feature = "macro")]
  22. #[allow(deprecated)]
  23. pub use dioxus_core_macro::{component, format_args_f, inline_props, render, rsx, Props};
  24. #[cfg(feature = "html")]
  25. pub use dioxus_html as dioxus_elements;
  26. #[cfg(feature = "html")]
  27. pub use dioxus_elements::{prelude::*, GlobalAttributes, SvgAttributes};
  28. #[cfg(all(not(target_arch = "wasm32"), feature = "hot-reload"))]
  29. pub use dioxus_hot_reload::{self, hot_reload_init};
  30. }