2021-07-15 03:38:09 -04:00
|
|
|
#![allow(non_snake_case)]
|
2021-07-29 18:04:09 -04:00
|
|
|
#![doc = include_str!("../README.md")]
|
2021-01-14 02:56:41 -05:00
|
|
|
|
2021-11-03 19:55:02 -04:00
|
|
|
pub(crate) mod component;
|
|
|
|
pub(crate) mod diff;
|
|
|
|
pub(crate) mod lazynodes;
|
|
|
|
pub(crate) mod mutations;
|
|
|
|
pub(crate) mod nodes;
|
|
|
|
pub(crate) mod scope;
|
2021-11-05 17:15:59 -04:00
|
|
|
pub(crate) mod scopearena;
|
2021-11-03 19:55:02 -04:00
|
|
|
pub(crate) mod virtual_dom;
|
2021-02-03 02:26:04 -05:00
|
|
|
|
2021-02-12 16:11:33 -05:00
|
|
|
pub(crate) mod innerlude {
|
2021-05-15 12:03:08 -04:00
|
|
|
pub use crate::component::*;
|
2021-12-12 19:47:13 -05:00
|
|
|
pub(crate) use crate::diff::*;
|
2021-11-01 02:41:23 -04:00
|
|
|
pub use crate::lazynodes::*;
|
2021-08-22 17:08:25 -04:00
|
|
|
pub use crate::mutations::*;
|
2021-05-15 12:03:08 -04:00
|
|
|
pub use crate::nodes::*;
|
2021-07-09 01:42:26 -04:00
|
|
|
pub use crate::scope::*;
|
2021-12-13 00:06:17 -05:00
|
|
|
pub(crate) use crate::scopearena::*;
|
2021-05-15 12:03:08 -04:00
|
|
|
pub use crate::virtual_dom::*;
|
2021-11-01 02:41:23 -04:00
|
|
|
|
2021-11-28 16:25:42 -05:00
|
|
|
pub type Element = Option<VPortal>;
|
2021-12-13 00:06:17 -05:00
|
|
|
pub type Component<P> = for<'a> fn(Context<'a, P>) -> Element;
|
2021-07-11 19:31:07 -04:00
|
|
|
}
|
2021-02-12 00:29:46 -05:00
|
|
|
|
2021-08-31 12:28:44 -04:00
|
|
|
pub use crate::innerlude::{
|
2021-12-13 00:14:47 -05:00
|
|
|
AnyContext, Attribute, Component, Context, DioxusElement, DomEdit, Element, ElementId,
|
|
|
|
EventHandler, EventPriority, IntoVNode, LazyNodes, Listener, Mutations, NodeFactory,
|
|
|
|
Properties, SchedulerMsg, Scope, ScopeId, UserEvent, VElement, VFragment, VNode, VirtualDom,
|
2021-08-31 12:28:44 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
pub mod prelude {
|
2021-11-07 20:59:09 -05:00
|
|
|
pub use crate::component::{fc_to_builder, Fragment, Properties};
|
2021-11-03 19:55:02 -04:00
|
|
|
pub use crate::innerlude::Context;
|
2021-12-09 21:19:31 -05:00
|
|
|
pub use crate::innerlude::{
|
2021-12-13 00:14:47 -05:00
|
|
|
AnyContext, Component, DioxusElement, Element, EventHandler, LazyNodes, NodeFactory, Scope,
|
2021-12-09 21:19:31 -05:00
|
|
|
};
|
2021-08-31 12:28:44 -04:00
|
|
|
pub use crate::nodes::VNode;
|
|
|
|
pub use crate::VirtualDom;
|
|
|
|
}
|
|
|
|
|
2021-07-11 19:31:07 -04:00
|
|
|
pub mod exports {
|
2021-08-25 15:54:33 -04:00
|
|
|
//! Important dependencies that are used by the rest of the library
|
|
|
|
// the foundation of this library
|
2021-07-15 04:09:28 -04:00
|
|
|
pub use bumpalo;
|
2021-10-04 01:28:04 -04:00
|
|
|
pub use futures_channel;
|
2021-01-14 20:56:28 -05:00
|
|
|
}
|