alloy_json_abi/
lib.rs

1// Copyright 2015-2020 Parity Technologies
2// Copyright 2023-2023 Alloy Contributors
3
4// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
7// option. This file may not be copied, modified, or distributed
8// except according to those terms.
9
10#![doc = include_str!("../README.md")]
11#![doc(
12    html_logo_url = "https://raw.githubusercontent.com/alloy-rs/core/main/assets/alloy.jpg",
13    html_favicon_url = "https://raw.githubusercontent.com/alloy-rs/core/main/assets/favicon.ico"
14)]
15#![cfg_attr(not(test), warn(unused_crate_dependencies))]
16#![cfg_attr(not(feature = "std"), no_std)]
17#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
18#![allow(clippy::literal_string_with_formatting_args)] // TODO: https://github.com/rust-lang/rust-clippy/issues/13885
19
20#[macro_use]
21#[allow(unused_imports)]
22extern crate alloc;
23
24pub extern crate alloy_sol_type_parser as parser;
25
26mod abi;
27pub use abi::{ContractObject, IntoItems, Items, JsonAbi};
28
29mod item;
30pub use item::{AbiItem, Constructor, Error, Event, Fallback, Function, Receive};
31
32mod param;
33pub use param::{EventParam, Param};
34
35pub use parser::{serde_state_mutability_compat, StateMutability};
36
37mod internal_type;
38pub use internal_type::InternalType;
39
40mod to_sol;
41pub use to_sol::ToSolConfig;
42
43pub(crate) mod utils;