Rust: Setup core architecture

This commit is contained in:
Juno Takano 2026-03-24 17:39:22 -03:00
commit 397ed5a236
6 changed files with 217 additions and 3 deletions

6
rust/src/log.rs Normal file
View 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}");
}
}