Port code from Cargo and use for progress

A lot of its functionality is unused still, but the goal it to slowly
migrate logging functionality to it. There is also a useful progress bar
which can be ported over later - it depends on this module.

4c1fa54d10/src/cargo/util/progress.rs
This commit is contained in:
Ryan Dahl 2019-05-30 11:07:58 -04:00
parent 89216c7baa
commit 3a4d88475b
12 changed files with 554 additions and 32 deletions

View file

@ -180,7 +180,7 @@ pub fn compile_async(
err_check(worker.execute("workerMain()"));
err_check(worker.execute("compilerMain()"));
let compiling_job = state.progress.add(format!("Compiling {}", module_name));
let compiling_job = state.progress.add("Compile", &module_name);
let resource = worker.state.resource.clone();
let compiler_rid = resource.rid;