refactor: Begin migration to nyash.toml v2 plugin system

- Rename legacy plugin files to *_legacy.rs for protection
- Comment out old plugin loader and Host VTable dependencies
- Add temporary stub for create_plugin_box during migration
- Fix doc comment placement in io_methods.rs
- Prepare for v2 plugin system with single FFI entry point
This commit is contained in:
Moe Charm
2025-08-19 05:05:21 +09:00
parent e1b148051b
commit 806aece8ad
9 changed files with 805 additions and 26 deletions

View File

@ -4,14 +4,14 @@
pub mod plugin_config;
pub mod box_registry;
pub mod plugin_box;
pub mod plugin_loader;
// pub mod plugin_box; // legacy - 古いPluginBox
// pub mod plugin_loader; // legacy - Host VTable使用
#[cfg(test)]
mod tests;
pub use plugin_config::PluginConfig;
pub use box_registry::{BoxFactoryRegistry, BoxProvider, get_global_registry};
pub use plugin_box::PluginBox;
// pub use plugin_box::PluginBox; // legacy
// Use unified plugin loader (formerly v2)
pub use plugin_loader::{PluginLoaderV2 as PluginLoader, get_global_loader_v2 as get_global_loader};
// pub use plugin_loader::{PluginLoaderV2 as PluginLoader, get_global_loader_v2 as get_global_loader}; // legacy