MCPcopy Create free account
hub / github.com/ExtropyIO/SolanaBootcamp / compile_only

Function compile_only

homeworks_rust/src/verify.rs:42–52  ·  view source on GitHub ↗

Invoke the rust compiler without running the resulting binary

(exercise: &Exercise)

Source from the content-addressed store, hash-verified

40
41// Invoke the rust compiler without running the resulting binary
42fn compile_only(exercise: &Exercise) -> Result<bool, ()> {
43 let progress_bar = ProgressBar::new_spinner();
44 progress_bar.set_message(format!("Compiling {}...", exercise).as_str());
45 progress_bar.enable_steady_tick(100);
46
47 let _ = compile(exercise, &progress_bar)?;
48 progress_bar.finish_and_clear();
49
50 success!("Successfully compiled {}!", exercise);
51 Ok(prompt_for_completion(exercise, None))
52}
53
54// Compile the given Exercise and run the resulting binary in an interactive mode
55fn compile_and_run_interactively(exercise: &Exercise) -> Result<bool, ()> {

Callers 1

verifyFunction · 0.85

Calls 2

compileFunction · 0.85
prompt_for_completionFunction · 0.85

Tested by

no test coverage detected