mirror of
https://github.com/pezkuwichain/revive-differential-tests.git
synced 2026-06-14 02:51:06 +00:00
Add reporting back to the compilers
This commit is contained in:
@@ -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>>;
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user