- Stripped 11 business crates (health, ai, dialysis, plugins) - Cleaned AppState, AppConfig, main.rs from business coupling - Reduced migrations from 169 to 53 (base-only) - Removed health_provider trait from erp-core - Removed business integration tests - Removed gateway rate limiting middleware - Base capabilities: auth, RBAC, JWT, config, workflow, message, plugin, audit, crypto, RLS, multi-tenant Cargo check: OK Cargo test: OK
27 lines
647 B
Rust
27 lines
647 B
Rust
//! ERP WASM 插件运行时 — 生产级 Host API
|
|
//!
|
|
//! 完整插件管理链路:加载 → 初始化 → 运行 → 停用 → 卸载
|
|
|
|
// bindgen! 生成类型化绑定(包含 Host trait 和 PluginWorld 类型)
|
|
// 生成: erp::plugin::host_api::Host trait, PluginWorld 类型
|
|
wasmtime::component::bindgen!({
|
|
path: "wit/plugin.wit",
|
|
world: "plugin-world",
|
|
});
|
|
|
|
pub mod data_dto;
|
|
pub mod data_service;
|
|
pub mod dto;
|
|
pub mod dynamic_table;
|
|
pub mod engine;
|
|
pub mod entity;
|
|
pub mod error;
|
|
pub mod handler;
|
|
pub mod host;
|
|
pub mod manifest;
|
|
pub mod module;
|
|
pub mod notification;
|
|
pub mod plugin_validator;
|
|
pub mod service;
|
|
pub mod state;
|