1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#![cfg_attr(not(feature = "std"), no_std)]

extern crate core;
#[cfg(not(any(feature = "std", feature = "alloc")))]
compile_error!("Either feature `std` or `alloc` must be enabled for this crate.");
#[cfg(all(feature = "std", feature = "alloc"))]
compile_error!("Feature `std` and `alloc` can't be enabled at the same time.");

#[cfg(not(any(feature = "moka", feature = "lru")))]
compile_error!("Either feature `moka` or `lru` must be enabled for this crate.");
#[cfg(all(feature = "moka", feature = "lru"))]
compile_error!("Feature `moka` and `lru` can't be enabled at the same time.");

/// Radix Engine kernel, defining state, ownership and (low-level) invocation semantics.
pub mod kernel;
/// Radix Engine system, defining packages (a.k.a. classes), components (a.k.a. objects) and invocation semantics.
pub mod system;
/// Radix Engine transaction interface.
pub mod transaction;

/// Native blueprints (to be moved to individual crates)
pub mod blueprints;

pub mod track;

/// Scrypto/SBOR types required by Radix Engine.
pub mod types;

pub mod errors;

pub mod utils;
pub mod vm;

pub mod prelude {
    // Note - radix_engine::types was previously something like an internal/
    // external prelude, but let's normalize radix-engine to have a prelude
    // like everything else, and add to it where needed
    pub use crate::types::*;
}

pub(crate) mod internal_prelude {
    pub use super::prelude::*;
    pub use crate::blueprints::internal_prelude::*;
    pub use crate::errors::*;
    pub use crate::system::system_substates::*;
    pub use crate::{event_schema, method_auth_template, roles_template};
}