lib.rs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. #![allow(non_snake_case)]
  2. //! Dioxus Core
  3. //! ----------
  4. //!
  5. //!
  6. //!
  7. //!
  8. //!
  9. //!
  10. //!
  11. pub use crate::innerlude::{
  12. format_args_f, html, rsx, Context, DioxusElement, DomEdit, DomTree, ElementId, EventPriority,
  13. EventTrigger, LazyNodes, NodeFactory, Properties, RealDom, ScopeId, VNode, VNodeKind,
  14. VirtualDom, VirtualEvent, FC,
  15. };
  16. pub mod prelude {
  17. pub use crate::component::{fc_to_builder, Fragment, Properties};
  18. pub use crate::context::Context;
  19. pub use crate::innerlude::{DioxusElement, DomTree, LazyNodes, NodeFactory, FC};
  20. pub use crate::nodes::VNode;
  21. pub use crate::VirtualDom;
  22. pub use dioxus_core_macro::{format_args_f, html, rsx, Props};
  23. }
  24. // types used internally that are important
  25. pub(crate) mod innerlude {
  26. pub use crate::arena::*;
  27. pub use crate::bumpframe::*;
  28. pub use crate::component::*;
  29. pub use crate::context::*;
  30. pub use crate::diff::*;
  31. pub use crate::editor::*;
  32. pub use crate::error::*;
  33. pub use crate::events::*;
  34. pub use crate::heuristics::*;
  35. pub use crate::hooklist::*;
  36. pub use crate::nodes::*;
  37. pub use crate::scope::*;
  38. pub use crate::util::*;
  39. pub use crate::virtual_dom::*;
  40. pub type DomTree<'a> = Option<VNode<'a>>;
  41. pub type FC<P> = fn(Context<P>) -> DomTree;
  42. pub use dioxus_core_macro::{format_args_f, html, rsx};
  43. }
  44. pub mod exports {
  45. // export important things here
  46. pub use bumpalo;
  47. }
  48. pub mod arena;
  49. pub mod bumpframe;
  50. pub mod component;
  51. pub mod context;
  52. pub mod diff;
  53. pub mod editor;
  54. pub mod error;
  55. pub mod events;
  56. pub mod heuristics;
  57. pub mod hooklist;
  58. pub mod nodes;
  59. pub mod scope;
  60. pub mod signals;
  61. pub mod util;
  62. pub mod virtual_dom;