Skip to main content

rill_runtime/
lib.rs

1//! Independently distributable runtime for RillML.
2
3pub mod archive;
4pub mod handler;
5pub mod handler_package;
6pub mod package;
7pub mod server;
8
9pub use archive::{
10    ReleaseIndexError, TrustStore, canonical_json, sign_release_index, verify_release_index,
11};
12pub use handler::builtin::{LINEAR_REGRESSION_CAPABILITY, LinearRegressionInvokeHandler};
13#[cfg(feature = "wasm")]
14pub use handler::wasm::WasmInvokeHandler;
15pub use handler::{HandlerIdentity, HandlerLoadError, effective_capabilities};
16pub use handler_package::{
17    HandlerPackError, HandlerPackInspection, LoadedHandlerPack, build_signed_handler_pack,
18    load_handler_pack,
19};
20pub use package::{
21    LoadedModelPack, ModelPackError, ModelPackInspection, build_signed_model_pack, load_model_pack,
22};
23pub use server::{
24    CapturingLogSink, EngineResponse, HostLogSink, InvokeError, InvokeErrorKind, InvokeHandler,
25    MAX_DETAIL_BYTES, RuntimeEngine, StderrLogSink,
26};