1#![cfg_attr(not(feature = "std"), no_std)]
2#![recursion_limit = "256"] #[cfg(not(any(feature = "std", feature = "alloc")))]
5compile_error!("Either feature `std` or `alloc` must be enabled for this crate.");
6#[cfg(all(feature = "std", feature = "alloc"))]
7compile_error!("Feature `std` and `alloc` can't be enabled at the same time.");
8
9pub mod address;
11pub mod constants;
13pub mod crypto;
15pub mod data;
17pub mod math;
19pub mod network;
21pub mod state;
23pub mod time;
25pub mod types;
27
28pub mod traits;
29
30mod macros;
31
32extern crate sbor;
34pub use sbor::{Categorize, Decode, Encode, Sbor};
35
36extern crate radix_sbor_derive;
38pub use radix_sbor_derive::{
39 ManifestCategorize, ManifestDecode, ManifestEncode, ManifestSbor, ScryptoCategorize,
40 ScryptoDecode, ScryptoEncode, ScryptoEvent, ScryptoSbor, ScryptoSborAssertion,
41};
42
43extern crate self as radix_common;
54
55pub mod prelude {
62 pub use radix_sbor_derive::{
64 ManifestCategorize, ManifestDecode, ManifestEncode, ManifestSbor, ScryptoCategorize,
65 ScryptoDecode, ScryptoDescribe, ScryptoEncode, ScryptoEvent, ScryptoSbor,
66 ScryptoSborAssertion,
67 };
68 pub use sbor::prelude::*;
69 pub use sbor::*;
70
71 pub use super::address::*;
73 pub use super::constants::*;
74 pub use super::crypto::*;
75 pub use super::data::manifest::prelude::*;
76 pub use super::data::scrypto::prelude::*;
77 pub use super::math::*;
78 pub use super::network::*;
79 pub use super::state::*;
80 pub use super::time::*;
81 pub use super::traits::*;
82 pub use super::types::*;
83 pub use crate::{
84 define_wrapped_hash, i, manifest_args, scrypto_args, to_manifest_value_and_unwrap,
85 };
86}
87
88pub(crate) mod internal_prelude {
89 pub use super::prelude::*;
90 pub use sbor::representations::*;
91 pub use sbor::traversal::*;
92}