Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 19 additions & 20 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ solar-ast.opt-level = 3
solar-data-structures.opt-level = 3
solar-interface.opt-level = 3
solar-parse.opt-level = 3
solar-sema.opt-level = 3

# EVM.
alloy-dyn-abi.opt-level = 3
Expand Down Expand Up @@ -204,7 +205,7 @@ foundry-linking = { path = "crates/linking" }

# solc & compilation utilities
foundry-block-explorers = { version = "0.21.0", default-features = false }
foundry-compilers = { version = "0.19.0", default-features = false }
foundry-compilers = { version = "0.19.1", default-features = false }
foundry-fork-db = "0.18"
solang-parser = { version = "=0.3.9", package = "foundry-solang-parser" }
solar = { package = "solar-compiler", version = "=0.1.6", default-features = false }
Expand Down
6 changes: 4 additions & 2 deletions crates/config/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -957,9 +957,11 @@ impl Config {
self.create_project(false, true)
}

/// Same as [`Self::ephemeral_project()`] but configures the project to not emit any artifacts.
/// A cached, in-memory project that does not request any artifacts.
///
/// Use this when you just want the source graph or the Solar compiler context.
pub fn solar_project(&self) -> Result<Project<MultiCompiler>, SolcError> {
let mut project = self.ephemeral_project()?;
let mut project = self.project()?;
project.update_output_selection(|selection| {
*selection = OutputSelection::common_output_selection([]);
});
Expand Down
Loading