feat(solc): expose svm_compile
This commit is contained in:
parent
48bd3f13e2
commit
270fe46d37
|
@ -235,7 +235,7 @@ impl<Artifacts: ArtifactOutput> Project<Artifacts> {
|
||||||
|
|
||||||
#[cfg(all(feature = "svm", feature = "async"))]
|
#[cfg(all(feature = "svm", feature = "async"))]
|
||||||
#[tracing::instrument(skip(self, sources))]
|
#[tracing::instrument(skip(self, sources))]
|
||||||
fn svm_compile(&self, sources: Sources) -> Result<ProjectCompileOutput<Artifacts>> {
|
pub fn svm_compile(&self, sources: Sources) -> Result<ProjectCompileOutput<Artifacts>> {
|
||||||
let graph = Graph::resolve_sources(&self.paths, sources)?;
|
let graph = Graph::resolve_sources(&self.paths, sources)?;
|
||||||
let sources_by_version =
|
let sources_by_version =
|
||||||
graph.into_sources_by_version(!self.auto_detect)?.get(&self.allowed_lib_paths)?;
|
graph.into_sources_by_version(!self.auto_detect)?.get(&self.allowed_lib_paths)?;
|
||||||
|
|
Loading…
Reference in New Issue