toolkit/bootstrap/mod.rs
1//! Unified bootstrap library for Gears Toolkit gears
2//!
3//! This crate provides bootstrap functionality for both host (in-process) and
4//! `OoP` (out-of-process) Toolkit gears.
5//!
6//! ## Gears
7//!
8//! - [`config`]: Configuration types and utilities
9//! - [`host`]: Host/in-process bootstrap - logging, signals, and paths
10//! - [`oop`]: Out-of-process gear bootstrap - lifecycle management with `DirectoryService`
11//! (requires the `oop` feature)
12//!
13//! ## Backends
14//!
15//! Backend types for spawning `OoP` gears have been moved to `toolkit::backends`.
16
17pub mod config;
18mod crypto;
19pub mod host;
20
21pub mod oop;
22
23// Re-export commonly used config types at crate root for convenience
24pub use config::{
25 AppConfig, CliArgs, ConsoleFormat, GearConfig, GearRuntime, LoggingConfig, RenderedGearConfig,
26 RuntimeKind, Section, ServerConfig, TOOLKIT_MODULE_CONFIG_ENV, VendorConfig, VendorConfigError,
27 dump_effective_gears_config_json, dump_effective_gears_config_yaml, list_gear_names,
28 render_effective_gears_config,
29};
30
31// Re-export host types for convenience
32pub use oop::{OopRunOptions, run_oop_with_options};
33
34mod run;
35pub use run::{run_migrate, run_server};
36
37pub use crypto::{CryptoProviderError, init_crypto_provider};