Have you ever built a cross-compatible game or CLI tool or the simple Russian Roulette game, I have as the banner for this article?
Well if you are wondering how I can target each operating system, sit back as I explain the wonders of conditional compilation and how it is done in Rust.
![#[cfg] Conditional Compilation in Rust](https://strapi-images-aws-s3.s3.us-west-2.amazonaws.com/Embedded_Link_44_06c388963d.png)
If you have ever built cross-compatible software you would not need this explanation; but for the rest of us. Conditional compilation is simply compiling only parts of code needed based on some given conditions
![When to use Arrays and Vectors in Rust — Array[] vs Vectors<>](https://strapi-images-aws-s3.s3.us-west-2.amazonaws.com/Arrays_vs_Vectors_in_Rust_a110e678aa.png)














