2025-08-17 22:44:16 +09:00
|
|
|
|
//! Nyashランタイムモジュール
|
2025-09-17 07:43:07 +09:00
|
|
|
|
//!
|
2025-08-17 22:44:16 +09:00
|
|
|
|
//! プラグインシステムとBox管理の中核
|
|
|
|
|
|
|
|
|
|
|
|
pub mod box_registry;
|
2025-09-17 07:43:07 +09:00
|
|
|
|
pub mod gc;
|
2025-09-17 20:33:19 +09:00
|
|
|
|
pub mod gc_controller;
|
|
|
|
|
|
pub mod gc_mode;
|
|
|
|
|
|
pub mod gc_trace;
|
2025-09-17 07:43:07 +09:00
|
|
|
|
pub mod global_hooks;
|
2025-08-22 05:01:11 +09:00
|
|
|
|
pub mod leak_tracker;
|
2025-08-20 18:57:10 +09:00
|
|
|
|
pub mod nyash_runtime;
|
2025-09-17 07:43:07 +09:00
|
|
|
|
pub mod plugin_config;
|
|
|
|
|
|
pub mod plugin_ffi_common;
|
|
|
|
|
|
pub mod plugin_loader_unified;
|
|
|
|
|
|
pub mod plugin_loader_v2;
|
2025-08-27 17:06:46 +09:00
|
|
|
|
pub mod scheduler;
|
2025-09-01 23:44:34 +09:00
|
|
|
|
pub mod semantics;
|
2025-09-17 07:43:07 +09:00
|
|
|
|
pub mod unified_registry;
|
2025-09-26 00:27:02 +09:00
|
|
|
|
pub mod provider_lock;
|
|
|
|
|
|
pub mod provider_verify;
|
2025-11-01 18:45:26 +09:00
|
|
|
|
pub mod observe; // Lightweight observability flags (OOB etc.)
|
2025-08-19 05:05:21 +09:00
|
|
|
|
// pub mod plugin_box; // legacy - 古いPluginBox
|
|
|
|
|
|
// pub mod plugin_loader; // legacy - Host VTable使用
|
2025-09-03 05:56:57 +09:00
|
|
|
|
pub mod extern_registry; // ExternCall (env.*) 登録・診断用レジストリ
|
2025-09-17 07:43:07 +09:00
|
|
|
|
pub mod host_api; // C ABI: plugins -> host 逆呼び出しAPI(TLSでVMに橋渡し)
|
|
|
|
|
|
pub mod host_handles; // C ABI(TLV) 向け HostHandle レジストリ(ユーザー/内蔵Box受け渡し)
|
|
|
|
|
|
pub mod modules_registry;
|
|
|
|
|
|
pub mod type_box_abi; // Phase 12: Nyash ABI (vtable) 雛形
|
|
|
|
|
|
pub mod type_meta;
|
|
|
|
|
|
pub mod type_registry; // Phase 12: TypeId→TypeBox 解決(雛形) // env.modules minimal registry
|
2025-08-17 22:52:17 +09:00
|
|
|
|
|
|
|
|
|
|
#[cfg(test)]
|
|
|
|
|
|
mod tests;
|
2025-08-17 22:44:16 +09:00
|
|
|
|
|
2025-09-17 07:43:07 +09:00
|
|
|
|
pub use box_registry::{get_global_registry, BoxFactoryRegistry, BoxProvider};
|
2025-08-17 22:44:16 +09:00
|
|
|
|
pub use plugin_config::PluginConfig;
|
2025-09-17 07:43:07 +09:00
|
|
|
|
pub use plugin_loader_unified::{
|
|
|
|
|
|
get_global_plugin_host, init_global_plugin_host, MethodHandle, PluginBoxType, PluginHost,
|
|
|
|
|
|
PluginLibraryHandle,
|
|
|
|
|
|
};
|
|
|
|
|
|
pub use plugin_loader_v2::{get_global_loader_v2, init_global_loader_v2, PluginLoaderV2};
|
2025-08-27 00:03:48 +09:00
|
|
|
|
pub mod cache_versions;
|
2025-09-17 07:43:07 +09:00
|
|
|
|
pub use gc::{BarrierKind, GcHooks};
|
2025-08-20 18:57:10 +09:00
|
|
|
|
pub use nyash_runtime::{NyashRuntime, NyashRuntimeBuilder};
|
2025-08-27 17:06:46 +09:00
|
|
|
|
pub use scheduler::{Scheduler, SingleThreadScheduler};
|
2025-09-17 07:43:07 +09:00
|
|
|
|
pub use unified_registry::{
|
|
|
|
|
|
get_global_unified_registry, init_global_unified_registry, register_user_defined_factory,
|
|
|
|
|
|
};
|
2025-08-19 05:05:21 +09:00
|
|
|
|
// pub use plugin_box::PluginBox; // legacy
|
2025-08-19 03:48:44 +09:00
|
|
|
|
// Use unified plugin loader (formerly v2)
|
2025-08-20 18:57:10 +09:00
|
|
|
|
// pub use plugin_loader::{PluginLoaderV2 as PluginLoader, get_global_loader_v2 as get_global_loader}; // legacy
|