Skip to main contentModule utils
Source use eyre::Result; ๐ use foundry_common::fs::canonicalize_path; ๐ use foundry_compilers::CompilerInput; ๐ use foundry_compilers::Graph; ๐ use foundry_compilers::Project; ๐ use foundry_compilers::ProjectCompileOutput; ๐ use foundry_compilers::ProjectPathsConfig; ๐ use foundry_compilers::artifacts::Source; ๐ use foundry_compilers::artifacts::Sources; ๐ use foundry_compilers::multi::MultiCompilerLanguage; ๐ use foundry_compilers::multi::MultiCompilerParser; ๐ use foundry_compilers::solc::SOLC_EXTENSIONS; ๐ use foundry_compilers::solc::SolcLanguage; ๐ use foundry_compilers::solc::SolcVersionedInput; ๐ use foundry_config::Config; ๐ use solar::interface::MIN_SOLIDITY_VERSION; ๐ use solar::sema::ParsingContext; ๐ use std::collections::HashSet; ๐ use std::path::Path; ๐ use std::path::PathBuf; ๐ use rayon::prelude::*; ๐
- SolarSourceStatus
- Describes the Solidity sources encountered while configuring Solar.
- configure_pcx_all_sources
- Configures a Solar parsing context with all Solar-compatible project sources.
- configure_pcx_all_sources_with_status
- Configures a Solar parsing context with all Solar-compatible project sources and reports
whether unsupported sources were skipped.
- configure_pcx_from_compile_output
- Configures a [
ParsingContext] from a [ProjectCompileOutput]. - configure_pcx_from_solc
- Configures a [
ParsingContext] from [ProjectPathsConfig] and [SolcVersionedInput]. - configure_pcx_from_solc_cli ๐
- configure_pcx_with_sources ๐
- get_solar_sources_from_compile_output
- Extracts Solar-compatible sources from a [
ProjectCompileOutput].