Skip to main content

tembra_runtime/
lib.rs

1//! Managed Rust orbs over the language-neutral Tembra kernel.
2mod clock;
3pub mod codec;
4#[cfg(feature = "hooks")]
5mod hooks;
6mod host;
7mod orb;
8pub mod portable;
9mod state;
10pub use clock::Clock;
11#[cfg(feature = "subscriptions")]
12mod events;
13mod readable;
14#[cfg(feature = "rpc")]
15pub mod rpc;
16#[cfg(feature = "subscriptions")]
17pub use events::{Detach, EventHandler, EventOptions, EventSource};
18pub use readable::{Observation, Readable};
19
20#[cfg(feature = "hooks")]
21pub use hooks::{Hook, HookHandle};
22pub use host::{
23    AcquisitionOptions, Cancellation, Context, Declaration, ForeignNotification, Host, IssuedCall,
24    LogRecord, Reference, Resource, ResourceKey, ResourceSignal, TaskScope,
25};
26pub use orb::{Codec, Orb, Provider, Service};
27/// The JSON crate the codecs `#[tembra::orb]` generates read and write portable values with: an
28/// Orb crate names it through the facade, with no dependency of its own.
29#[doc(hidden)]
30pub use serde_json;
31pub use state::State;
32pub use tembra_core as core;
33pub use tembra_core::{Code, Error, Result};