2021-07-15 07:38:09 +00:00
|
|
|
#![allow(non_snake_case)]
|
2021-07-29 22:04:09 +00:00
|
|
|
#![doc = include_str!("../README.md")]
|
2021-06-16 15:19:37 +00:00
|
|
|
//! Dioxus Core
|
|
|
|
//! ----------
|
2021-01-15 07:52:47 +00:00
|
|
|
//!
|
2021-01-20 17:04:27 +00:00
|
|
|
//!
|
|
|
|
//!
|
2021-01-29 16:57:52 +00:00
|
|
|
//!
|
|
|
|
//!
|
|
|
|
//!
|
2021-01-20 17:04:27 +00:00
|
|
|
//!
|
2021-01-14 07:56:41 +00:00
|
|
|
|
2021-07-13 03:44:20 +00:00
|
|
|
pub use crate::innerlude::{
|
2021-07-24 06:52:05 +00:00
|
|
|
format_args_f, html, rsx, Context, DioxusElement, DomEdit, DomTree, ElementId, EventPriority,
|
2021-08-08 19:15:16 +00:00
|
|
|
EventTrigger, LazyNodes, NodeFactory, Properties, ScopeId, SuspendedContext, VNode, VNodeKind,
|
|
|
|
VirtualDom, VirtualEvent, FC,
|
2021-07-13 03:44:20 +00:00
|
|
|
};
|
2021-07-05 22:37:15 +00:00
|
|
|
|
2021-07-13 03:44:20 +00:00
|
|
|
pub mod prelude {
|
|
|
|
pub use crate::component::{fc_to_builder, Fragment, Properties};
|
|
|
|
pub use crate::context::Context;
|
2021-07-27 15:28:05 +00:00
|
|
|
pub use crate::hooks::*;
|
2021-07-18 16:39:32 +00:00
|
|
|
pub use crate::innerlude::{DioxusElement, DomTree, LazyNodes, NodeFactory, FC};
|
2021-07-13 03:44:20 +00:00
|
|
|
pub use crate::nodes::VNode;
|
|
|
|
pub use crate::VirtualDom;
|
|
|
|
pub use dioxus_core_macro::{format_args_f, html, rsx, Props};
|
|
|
|
}
|
2021-02-03 07:26:04 +00:00
|
|
|
|
2021-02-07 22:38:17 +00:00
|
|
|
// types used internally that are important
|
2021-02-12 21:11:33 +00:00
|
|
|
pub(crate) mod innerlude {
|
2021-07-15 08:09:28 +00:00
|
|
|
pub use crate::arena::*;
|
2021-07-09 05:36:18 +00:00
|
|
|
pub use crate::bumpframe::*;
|
2021-05-15 16:03:08 +00:00
|
|
|
pub use crate::component::*;
|
2021-07-09 05:36:18 +00:00
|
|
|
pub use crate::context::*;
|
2021-05-15 16:03:08 +00:00
|
|
|
pub use crate::diff::*;
|
2021-07-15 04:40:37 +00:00
|
|
|
pub use crate::editor::*;
|
2021-05-15 16:03:08 +00:00
|
|
|
pub use crate::error::*;
|
|
|
|
pub use crate::events::*;
|
2021-07-15 08:17:45 +00:00
|
|
|
pub use crate::heuristics::*;
|
2021-07-15 08:09:28 +00:00
|
|
|
pub use crate::hooklist::*;
|
2021-07-27 15:28:05 +00:00
|
|
|
pub use crate::hooks::*;
|
2021-05-15 16:03:08 +00:00
|
|
|
pub use crate::nodes::*;
|
2021-08-10 04:29:53 +00:00
|
|
|
pub use crate::scheduler::*;
|
2021-07-09 05:42:26 +00:00
|
|
|
pub use crate::scope::*;
|
2021-07-09 05:37:34 +00:00
|
|
|
pub use crate::util::*;
|
2021-05-15 16:03:08 +00:00
|
|
|
pub use crate::virtual_dom::*;
|
2021-02-12 04:03:01 +00:00
|
|
|
|
2021-07-18 16:39:32 +00:00
|
|
|
pub type DomTree<'a> = Option<VNode<'a>>;
|
|
|
|
pub type FC<P> = fn(Context<P>) -> DomTree;
|
2021-02-21 02:59:16 +00:00
|
|
|
|
2021-07-13 03:44:20 +00:00
|
|
|
pub use dioxus_core_macro::{format_args_f, html, rsx};
|
2021-07-11 23:31:07 +00:00
|
|
|
}
|
2021-02-12 05:29:46 +00:00
|
|
|
|
2021-07-11 23:31:07 +00:00
|
|
|
pub mod exports {
|
|
|
|
// export important things here
|
2021-07-15 08:09:28 +00:00
|
|
|
pub use bumpalo;
|
2021-01-15 01:56:28 +00:00
|
|
|
}
|
2021-07-13 03:44:20 +00:00
|
|
|
|
|
|
|
pub mod arena;
|
|
|
|
pub mod bumpframe;
|
|
|
|
pub mod component;
|
|
|
|
pub mod context;
|
|
|
|
pub mod diff;
|
2021-07-15 04:40:37 +00:00
|
|
|
pub mod editor;
|
2021-07-13 03:44:20 +00:00
|
|
|
pub mod error;
|
|
|
|
pub mod events;
|
2021-07-15 08:17:45 +00:00
|
|
|
pub mod heuristics;
|
2021-07-13 03:44:20 +00:00
|
|
|
pub mod hooklist;
|
2021-07-27 15:28:05 +00:00
|
|
|
pub mod hooks;
|
2021-07-13 03:44:20 +00:00
|
|
|
pub mod nodes;
|
2021-08-10 04:29:53 +00:00
|
|
|
pub mod scheduler;
|
2021-07-13 03:44:20 +00:00
|
|
|
pub mod scope;
|
|
|
|
pub mod signals;
|
|
|
|
pub mod util;
|
|
|
|
pub mod virtual_dom;
|