Skip to main content

foundry_common/
lib.rs

1//! # foundry-common
2//!
3//! Common utilities for building and using foundry's tools.
4
5#![cfg_attr(not(test), warn(unused_crate_dependencies))]
6#![cfg_attr(docsrs, feature(doc_cfg))]
7
8#[expect(unused_extern_crates)] // Used by `ConsoleFmt`.
9extern crate self as foundry_common;
10
11#[macro_use]
12extern crate tracing;
13
14#[macro_use]
15pub mod io;
16
17pub use foundry_common_fmt as fmt;
18
19pub mod abi;
20pub mod calc;
21pub mod comments;
22pub mod compile;
23pub mod constants;
24pub mod contracts;
25pub mod errors;
26pub mod external_compiler;
27pub mod external_storage;
28pub mod fs;
29pub mod iter;
30pub mod mapping_slots;
31mod preprocessor;
32pub mod provider;
33pub mod retry;
34pub mod selectors;
35pub mod serde_helpers;
36pub mod slot_identifier;
37pub mod tempo;
38pub mod term;
39pub mod traits;
40pub mod transactions;
41mod utils;
42pub mod version;
43pub mod wallet;
44
45pub use compile::Analysis;
46pub use constants::*;
47pub use contracts::*;
48pub use io::{Shell, shell, stdin};
49pub use preprocessor::is_deploy_helper_path;
50pub use traits::*;
51pub use transactions::*;
52pub use utils::*;