evorule-plugin-kit 0.1.1

In-process native plugin mechanism common crate: NativeService trait, service declaration entries, and a generic filter router shared by all evorule-services plugin families
Documentation

evorule-plugin-kit

In-process native plugin mechanism common crate for evorule-services.

Defines the NativeService trait, the NativeServiceDef declaration entry, and the generic filter router shared by all evorule-services plugin families.

Re-exports

Plugin families must not depend on canonical-repo crates (evorule-tcb, evorule-reactor) directly: this crate is the single alias surface, so use evorule_plugin_kit::JsonValue / IoResult / IoHandler / ObjectMap / executor resolve to the identical underlying symbols (type-identity preserving re-exports, zero conversion layers).

Router semantics

  • NativeServiceRouter::new — full enable; a service_name hit dispatches to the native service, otherwise falls back to HTTP.
  • NativeServiceRouter::with_enabled / mount_router — subset enable with three fail-fast rejections: unknown name, duplicate name, empty enable set. Lookup always follows declaration order.
  • NativeService::execute_async — async extension point with a default implementation wrapping the synchronous execute; services needing external I/O override it.

License

AGPL-3.0-or-later. See DUAL_LICENSE.md in the repository root for commercial licensing options.