starknet_abigen_parser_stopgap/lib.rs
1//! This crates is about parsing Cairo types from an ABI.
2//! Later, this will also be able to parse Cairo type from Cairo code.
3//!
4//! The important consideration are the generic type. Indeed, in the ABI
5//! there is no information about a type genericity and how exactly
6//! the members/variants are following the generic type as everything is
7//! flattened.
8//!
9//! `abi_types` is the low level parsing of the types. It supports
10//! nested types.
11//!
12//! `CairoStruct`, `CairoEnum` and `CairoFunction` are higher level
13//! types to resolve the genericity and manage members/variants/inputs/outputs
14//! for simpler expansion.
15pub mod abi_types;
16
17mod cairo_struct;
18pub use cairo_struct::CairoStruct;
19
20mod cairo_enum;
21pub use cairo_enum::CairoEnum;
22
23mod cairo_function;
24pub use cairo_function::CairoFunction;
25
26mod cairo_event;
27pub use cairo_event::{CairoEvent, CairoEventInner};
28
29pub mod cairo_types;
30pub use cairo_types::CairoType;