Skip to main content

workflow_rs/
lib.rs

1//! Umbrella crate that re-exports the individual `workflow-rs` crates as
2//! feature-gated submodules, letting consumers depend on a single crate and
3//! enable only the subsystems they need.
4
5#[cfg(feature = "core")]
6/// Core async runtime, time, and utility primitives, re-exported from the
7/// `workflow-core` crate.
8pub mod core {
9    pub use workflow_core::*;
10}
11
12#[cfg(feature = "dom")]
13pub mod dom {
14    pub use workflow_dom::*;
15}
16
17#[cfg(feature = "html")]
18pub mod html {
19    pub use workflow_html::*;
20}
21
22#[cfg(feature = "i18n")]
23pub mod i18n {
24    pub use workflow_i18n::*;
25}
26
27#[cfg(feature = "log")]
28/// Logging facilities, re-exported from the `workflow-log` crate.
29pub mod log {
30    pub use workflow_log::*;
31}
32
33#[cfg(feature = "node")]
34pub mod node {
35    pub use workflow_node::*;
36}
37
38#[cfg(feature = "nw")]
39pub mod nw {
40    pub use workflow_nw::*;
41}
42
43#[cfg(feature = "panic-hook")]
44pub mod panic_hook {
45    pub use workflow_panic_hook::*;
46}
47
48#[cfg(feature = "rpc")]
49pub mod rpc {
50    pub use workflow_rpc::*;
51}
52
53#[cfg(feature = "store")]
54pub mod store {
55    pub use workflow_store::*;
56}
57
58#[cfg(feature = "terminal")]
59pub mod terminal {
60    pub use workflow_terminal::*;
61}
62
63#[cfg(feature = "wasm")]
64pub mod wasm {
65    pub use workflow_wasm::*;
66}
67
68#[cfg(feature = "websocket")]
69pub mod websocket {
70    pub use workflow_websocket::*;
71}