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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
//! # avalanche-types
//!
//! avalanche-types contains the foundational types used in the Avalanche ecosystem in Rust.
//! This include types used by the Avalanche JSON-RPC API and the EVM. Modules
//! for serialization/deserialization, hashing, and codecs are all provided.  
//!
//! The APIs can be used to build a custom, high-performance Rust VM that can run on
//! Avalanche. See the `subnet` subdirectory for an SDK that makes it easy to build a
//! custom VM in Rust.
//!
//! avalanche-types can also be used to build Rust clients and tooling within the Avalanche
//! ecosystem.
//!
#![cfg_attr(docsrs, feature(doc_cfg))]
pub mod avm;
pub mod choices;
pub mod codec;
pub mod constants;
pub mod errors;
pub mod formatting;
pub mod hash;
pub mod ids;
pub mod jsonrpc;
pub mod key;
pub mod node;
pub mod packer;
pub mod platformvm;
pub mod txs;
pub mod units;
pub mod utils;
pub mod verify;

#[cfg(feature = "avalanchego")]
#[cfg_attr(docsrs, doc(cfg(feature = "avalanchego")))]
pub mod avalanchego;

#[cfg(feature = "coreth")]
#[cfg_attr(docsrs, doc(cfg(feature = "coreth")))]
pub mod coreth;

#[cfg(feature = "subnet_evm")]
#[cfg_attr(docsrs, doc(cfg(feature = "subnet_evm")))]
pub mod subnet_evm;

#[cfg(feature = "xsvm")]
#[cfg_attr(docsrs, doc(cfg(feature = "xsvm")))]
pub mod xsvm;

#[cfg(feature = "evm")]
#[cfg_attr(docsrs, doc(cfg(feature = "evm")))]
pub mod evm;

#[cfg(feature = "message")]
#[cfg_attr(docsrs, doc(cfg(feature = "message")))]
pub mod message;

#[cfg(feature = "wallet")]
#[cfg_attr(docsrs, doc(cfg(feature = "wallet")))]
pub mod wallet;

#[cfg(feature = "proto")]
#[cfg_attr(docsrs, doc(cfg(feature = "proto")))]
pub mod proto;

#[cfg(feature = "subnet")]
#[cfg_attr(docsrs, doc(cfg(feature = "subnet")))]
pub mod subnet;