To simplify installation, add the following to Cargo.toml
[dependencies]
foundry-compilers-aletheia = { git = "https://github.com/Cyfrin/foundry-compilers-aletheia", branch = "main", package = "foundry-compilers-aletheia" }
Extract ASTs and other Evm Info
use std::path::Path;
use foundry_compilers_aletheia::{
DerivedAstEvmInfo, ProjectConfigInputBuilder, Result, derive_ast_and_evm_info,
};
pub fn ast_info(root: &str) -> Result<DerivedAstEvmInfo> {
let config = ProjectConfigInputBuilder::new(Path::new(root)).build()?;
derive_ast_and_evm_info(&config)
}
To be the fastest AST generator for Aderyn
This project exists thanks to all the people who contribute.