Skip to main content

oasis_runtime_sdk/
lib.rs

1//! Oasis runtime SDK.
2#![allow(unused_features)]
3#![feature(test)]
4#![feature(associated_type_defaults)]
5#![deny(rust_2018_idioms, unreachable_pub)]
6
7pub mod callformat;
8pub mod config;
9pub mod context;
10pub mod crypto;
11pub mod dispatcher;
12pub mod enclave_rpc;
13pub mod error;
14pub mod event;
15pub mod history;
16pub mod keymanager;
17pub mod module;
18pub mod modules;
19pub mod runtime;
20pub mod schedule_control;
21pub mod sender;
22pub mod state;
23pub mod storage;
24pub mod subcall;
25pub mod testing;
26pub mod types;
27
28pub use crate::{
29    context::Context, core::common::version::Version, module::Module, runtime::Runtime,
30    state::CurrentState,
31};
32
33// Re-export the appropriate version of the oasis-core-runtime library.
34pub use oasis_core_runtime as core;
35
36// Re-export the cbor crate.
37pub use cbor;
38
39// Re-export the SDK support proc-macros.
40#[cfg(feature = "oasis-runtime-sdk-macros")]
41pub use oasis_runtime_sdk_macros::*;
42
43// Required so that proc-macros can refer to items within this crate.
44use crate as oasis_runtime_sdk;