1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
//! Hub Core - Core infrastructure for building Plexus RPC servers
//!
//! This crate provides:
//! - `DynamicHub` - Dynamic routing hub for activations (implements Plexus RPC protocol)
//! - `Activation` - Trait for implementing activations
//! - `Handle` - Typed references to activation method results
//!
//! # Example
//!
//! ```rust,no_run
//! use plexus_core::plexus::DynamicHub;
//! use plexus_core::activations::echo::EchoActivation;
//! use plexus_core::activations::health::Health;
//! use std::sync::Arc;
//!
//! let hub = Arc::new(
//! DynamicHub::new("myapp")
//! .register(Health::new())
//! .register(EchoActivation::new())
//! );
//! ```
/// Crate version, populated at compile time from `CARGO_PKG_VERSION`.
///
/// Exposed so the `plexus-rpc` umbrella can stamp it into the
/// `Capabilities` manifest backends embed in `_info`. See UMB-2.
pub const VERSION: &str = env!;
// RETURNS-47: the caller from the call's context — `call::caller()`,
// `call::hop()`, `call::scope` — fail closed.
// PLEXUS-45: the runtime seam — spawn, sleep, timeout, the clock — tokio and
// std natively, the JS event loop and clock on wasm32.
pub
// Re-export commonly used items
pub use build_example_hub;
pub use ;
pub use ;
// Re-export schemars under a stable private path so PlexusRequest derive-generated code
// can reference the real schemars::JsonSchema trait without requiring the caller to have
// schemars in their own dependencies.
pub use schemars as __schemars;
// Proc-macro re-exports.
// Use as `plexus_core::activation` / `plexus_core::method`, or via a
// `plexus = { package = "plexus-core" }` Cargo alias as `plexus::activation` / `plexus::method`.
pub use activation;
pub use method;
pub use hub_methods;
pub use hub_method;