Skip to main content

Module utils

Module utils 

Source

Re-exportsยง

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::*; ๐Ÿ”’

Structsยง

SolarSourceStatus
Describes the Solidity sources encountered while configuring Solar.

Functionsยง

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].