/ console / types / src / lib.rs
lib.rs
 1  // Copyright (c) 2019-2025 Alpha-Delta Network Inc.
 2  // This file is part of the alphavm library.
 3  
 4  // Licensed under the Apache License, Version 2.0 (the "License");
 5  // you may not use this file except in compliance with the License.
 6  // You may obtain a copy of the License at:
 7  
 8  // http://www.apache.org/licenses/LICENSE-2.0
 9  
10  // Unless required by applicable law or agreed to in writing, software
11  // distributed under the License is distributed on an "AS IS" BASIS,
12  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  // See the License for the specific language governing permissions and
14  // limitations under the License.
15  
16  #![forbid(unsafe_code)]
17  #![allow(clippy::too_many_arguments)]
18  #![warn(clippy::cast_possible_truncation)]
19  
20  pub use modules::*;
21  
22  pub mod prelude {
23      pub use crate::modules::*;
24      pub use alphavm_console_network_environment::prelude::*;
25      pub use io_error as error;
26  }
27  
28  pub mod modules {
29      pub use alphavm_console_network_environment as environment;
30  
31      #[cfg(feature = "address")]
32      pub use alphavm_console_types_address as address;
33      #[cfg(feature = "address")]
34      pub use alphavm_console_types_address::Address;
35  
36      #[cfg(feature = "boolean")]
37      pub use alphavm_console_types_boolean as boolean;
38      #[cfg(feature = "boolean")]
39      pub use alphavm_console_types_boolean::Boolean;
40  
41      #[cfg(feature = "field")]
42      pub use alphavm_console_types_field as field;
43      #[cfg(feature = "field")]
44      pub use alphavm_console_types_field::Field;
45  
46      #[cfg(feature = "group")]
47      pub use alphavm_console_types_group as group;
48      #[cfg(feature = "group")]
49      pub use alphavm_console_types_group::Group;
50  
51      #[cfg(feature = "integers")]
52      pub use alphavm_console_types_integers as integers;
53      #[cfg(feature = "integers")]
54      pub use alphavm_console_types_integers::{I8, I16, I32, I64, I128, U8, U16, U32, U64, U128};
55  
56      #[cfg(feature = "scalar")]
57      pub use alphavm_console_types_scalar as scalar;
58      #[cfg(feature = "scalar")]
59      pub use alphavm_console_types_scalar::Scalar;
60  
61      #[cfg(feature = "string")]
62      pub use alphavm_console_types_string as string;
63      #[cfg(feature = "string")]
64      pub use alphavm_console_types_string::StringType;
65  }