Add reporting back to the compilers

This commit is contained in:
Omar Abdulla
2025-08-28 09:42:54 +03:00
parent b69aab903e
commit 90214f1afe
5 changed files with 97 additions and 8 deletions
+3
View File
@@ -43,6 +43,9 @@ pub trait SolidityCompiler {
/// Returns the version of the compiler.
fn version(&self) -> &Version;
/// Returns the path of the compiler executable.
fn path(&self) -> &Path;
/// The low-level compiler interface.
fn build(&self, input: CompilerInput) -> impl Future<Output = Result<CompilerOutput>>;
+4
View File
@@ -67,6 +67,10 @@ impl SolidityCompiler for Resolc {
self.solc.version()
}
fn path(&self) -> &std::path::Path {
&self.resolc_path
}
#[tracing::instrument(level = "debug", ret)]
async fn build(
&self,
+4
View File
@@ -68,6 +68,10 @@ impl SolidityCompiler for Solc {
&self.solc_version
}
fn path(&self) -> &std::path::Path {
&self.solc_path
}
#[tracing::instrument(level = "debug", ret)]
async fn build(
&self,