8
Combining native-windows-gui and tokio
(lemmy.ml)
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Credits
wouldn't it be better to use
#[cfg(target_os = "windows")]
instead of checking an env variable?Reference: https://doc.rust-lang.org/rust-by-example/attribute/cfg.html
Possibly yes. I'll check if the results are equivalent.