Skip to content

Commit 99cf063

Browse files
committed
fix build output
1 parent 25b540c commit 99cf063

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

src/build.rs

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ pub fn initialize_build(
142142
let rescript_version = helpers::get_rescript_version(&bsc_path);
143143

144144
if show_progress {
145-
println!("{} {}Building package tree...", style("[1/7]").bold().dim(), TREE);
145+
print!("{} {}Building package tree...", style("[1/7]").bold().dim(), TREE);
146146
let _ = stdout().flush();
147147
}
148148

@@ -169,7 +169,7 @@ pub fn initialize_build(
169169
let timing_source_files = Instant::now();
170170

171171
if show_progress {
172-
println!(
172+
print!(
173173
"{} {}Finding source files...",
174174
style("[2/7]").bold().dim(),
175175
LOOKING_GLASS
@@ -199,7 +199,7 @@ pub fn initialize_build(
199199
.as_secs_f64()
200200
);
201201

202-
println!(
202+
print!(
203203
"{} {}Reading compile state...",
204204
style("[3/7]").bold().dim(),
205205
COMPILE_STATE
@@ -221,7 +221,7 @@ pub fn initialize_build(
221221
.as_secs_f64()
222222
);
223223

224-
println!(
224+
print!(
225225
"{} {}Cleaning up previous build...",
226226
style("[4/7]").bold().dim(),
227227
SWEEP
@@ -373,6 +373,14 @@ pub fn incremental_build(
373373
} else {
374374
ProgressBar::hidden()
375375
};
376+
pb.set_style(
377+
ProgressStyle::with_template(&format!(
378+
"{} {}Compiling... {{spinner}} {{pos}}/{{len}} {{msg}}",
379+
format_step(current_step, total_steps),
380+
SWORDS
381+
))
382+
.unwrap(),
383+
);
376384

377385
let (compile_errors, compile_warnings, num_compiled_modules) =
378386
compile::compile(build_state, show_progress, || pb.inc(1), |size| pb.set_length(size))

src/helpers.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ pub mod emojis {
2525
pub static COMMAND: Emoji<'_, '_> = Emoji("🏃 ", "");
2626
pub static TREE: Emoji<'_, '_> = Emoji("📦 ", "");
2727
pub static SWEEP: Emoji<'_, '_> = Emoji("🧹 ", "");
28-
pub static LOOKING_GLASS: Emoji<'_, '_> = Emoji("🕵️ ", "");
28+
pub static LOOKING_GLASS: Emoji<'_, '_> = Emoji("🕵️ ", "");
2929
pub static CODE: Emoji<'_, '_> = Emoji("🧱 ", "");
30-
pub static SWORDS: Emoji<'_, '_> = Emoji("⚔️ ", "");
30+
pub static SWORDS: Emoji<'_, '_> = Emoji("🤺 ️", "");
3131
pub static DEPS: Emoji<'_, '_> = Emoji("️🌴 ", "");
3232
pub static CHECKMARK: Emoji<'_, '_> = Emoji("️✅ ", "");
3333
pub static CROSS: Emoji<'_, '_> = Emoji("️🛑 ", "");

0 commit comments

Comments
 (0)