CPEX host facade.
A single dependency that re-exports the CPEX host runtime, so hosts
depend on this crate instead of pinning apl-cmf, apl-cpex, and
cpex-core one by one.
By default this is the engine only — no builtin plugins are compiled
in. The bundled extension set lives in cpex-builtins
and is pulled in only when a builtins feature is enabled.
Usage
Engine only (register your own factories):
use std::sync::Arc;
use cpex::PluginManager;
let mgr = Arc::new(PluginManager::default());
// ... register host factories, then `apl_cpex::register_apl(&mgr, opts)`.
With the bundled builtins (enable the builtins or full feature):
use std::sync::Arc;
use cpex::PluginManager;
let mgr = Arc::new(PluginManager::default());
// Register every enabled builtin factory and install the APL config
// visitor (in-process defaults) in one call:
cpex::install_builtins(&mgr);
// ... then load a config that references the enabled `kind`s.
Features
No plugins are on by default (cpex = "0.2" is the engine alone).
builtins enables the common in-process set; full adds the Valkey
session store; or pick a granular subset (jwt, oauth, pii,
audit, cedar, cel, valkey). When any builtins feature is on, the
registration helpers and the concrete factory types are re-exported here
from cpex-builtins.