//! A host for worlds of JSON-RPC plugins. mod activation; pub mod cargo; mod components; pub mod console; mod core; mod execution; mod filesystem; mod graph; mod host; mod journal; mod locks; mod native; mod process; mod restart; mod routing; pub mod runtime; mod services; mod upgrades; mod watcher; pub mod world; pub use host::Host; pub use native::{NativeContext, NativeFuture, NativePlugin}; pub use process::ProcessInfo; use serde_json::{Value, json}; /// A JSON result or a JSON-RPC error object. pub type RpcResult = Result; fn error(code: i64, text: &str) -> Value { json!({"code":code,"message":text}) }