lib.rs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #![allow(non_snake_case)]
  2. //! # Dioxus Namespace for HTML
  3. //!
  4. //! This crate provides a set of compile-time correct HTML elements that can be used with the Rsx and Html macros.
  5. //! This system allows users to easily build new tags, new types, and customize the output of the Rsx and Html macros.
  6. //!
  7. //! An added benefit of this approach is the ability to lend comprehensive documentation on how to use these elements inside
  8. //! of the Rsx and Html macros. Each element comes with a substantial amount of documentation on how to best use it, hopefully
  9. //! making the development cycle quick.
  10. //!
  11. //! All elements are used as zero-sized unit structs with trait impls.
  12. //!
  13. //! Currently, we don't validate for structures, but do validate attributes.
  14. mod elements;
  15. #[cfg(feature = "hot-reload-context")]
  16. pub use elements::HtmlCtx;
  17. pub mod events;
  18. pub mod geometry;
  19. mod global_attributes;
  20. pub mod input_data;
  21. #[cfg(feature = "native-bind")]
  22. pub mod native_bind;
  23. mod render_template;
  24. #[cfg(feature = "wasm-bind")]
  25. mod web_sys_bind;
  26. #[cfg(feature = "serialize")]
  27. mod transit;
  28. #[cfg(feature = "serialize")]
  29. pub use transit::*;
  30. pub use elements::*;
  31. pub use events::*;
  32. pub use global_attributes::*;
  33. pub use render_template::*;
  34. pub mod prelude {
  35. pub use crate::events::*;
  36. }