rustbridge_runtime/lib.rs
1//! rustbridge-runtime - Tokio async runtime integration
2//!
3//! This crate provides:
4//! - [`AsyncRuntime`] for managing the Tokio runtime
5//! - [`AsyncBridge`] for bridging sync FFI calls to async handlers
6//! - Graceful shutdown support with broadcast signals
7
8mod bridge;
9mod runtime;
10mod shutdown;
11
12pub use bridge::AsyncBridge;
13pub use runtime::{AsyncRuntime, RuntimeConfig};
14pub use shutdown::{ShutdownHandle, ShutdownSignal};
15
16/// Prelude module for convenient imports
17pub mod prelude {
18 pub use crate::{AsyncBridge, AsyncRuntime, RuntimeConfig, ShutdownHandle, ShutdownSignal};
19}