actr-framework 0.5.9

Actor-RTC framework core (stub for code generation testing)
Documentation
//! Dynclib (cdylib) guest-side runtime module
//!
//! Runs in native shared libraries (.so/.dylib/.dll). Provides `DynclibContext`
//! (Context impl) that communicates with the host via `HostVTable` function pointers.
//!
//! Handler futures run on a guest-owned Tokio runtime. `tokio::spawn` therefore
//! works while a handler is active. Prefer [`spawn`] for long-lived tasks so the
//! runtime can abort and join them before the shared library is unloaded.
//!
//! The runtime uses one worker thread per loaded dynclib image by default. Set
//! `ACTR_DYNCLIB_WORKER_THREADS` to a positive integer before initialization to
//! opt into more workers for CPU-heavy background tasks. The environment is
//! process-wide, so the override applies to every dynclib image initialized
//! while it is set. Invalid values cause initialization to fail.

pub mod context;
mod runtime;

pub use context::DynclibContext;
pub use runtime::spawn;

#[doc(hidden)]
pub use runtime::{block_on, initialize, shutdown};