Rust: Setup core architecture
This commit is contained in:
parent
bed93fd58c
commit
397ed5a236
6 changed files with 217 additions and 3 deletions
6
rust/src/log.rs
Normal file
6
rust/src/log.rs
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
pub fn elog(message: &str) {
|
||||
// DONE MUST be printed only if DEBUG is set in the environment
|
||||
if let Ok(debug) = std::env::var("DEBUG") && !debug.is_empty() {
|
||||
eprintln!(" [log] {message}");
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue