Skip to content

Commit

Permalink
feat(forge): print compile time (foundry-rs#1145)
Browse files Browse the repository at this point in the history
* Print compilation time

* Remove patch, update ethers-rs
  • Loading branch information
ecmendenhall authored Apr 2, 2022
1 parent ad94ae0 commit bf17007
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 11 deletions.
20 changes: 10 additions & 10 deletions Cargo.lock

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

10 changes: 9 additions & 1 deletion cli/src/term.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ use std::{
mpsc::{self, TryRecvError},
Arc, Mutex,
},
time::Duration,
};

/// Some spinners
Expand Down Expand Up @@ -228,8 +229,15 @@ impl Reporter for SpinnerReporter {
self.solc_io_report.log_compiler_input(input);
}

fn on_solc_success(&self, _solc: &Solc, _version: &Version, output: &CompilerOutput) {
fn on_solc_success(
&self,
_solc: &Solc,
_version: &Version,
output: &CompilerOutput,
duration: &Duration,
) {
self.solc_io_report.log_compiler_output(output);
self.send_msg(format!("Solc finished in {:.2?}", duration));
}

/// Invoked before a new [`Solc`] bin is installed
Expand Down

0 comments on commit bf17007

Please sign in to comment.