Optimizing Docker Images for Rust Projects
This post will be the first of several addressing Docker image optimizations for different project types. It stems from my recent experiences with bad...
Fast + Small Docker Image Builds for Rust Apps
In this post I’m going to demonstrate how to create small, quickly built Docker Images for Rustapplications.
We’ll start by creating a simple...
In order to setup a project we need to install the nightly build of Rust and add the WebAssembly target. For an improved workflow we also install the CLI tools wasm-pack and wasm-gc.
Install:
bre...
fn main() {
let a = [10, 20, 30, 40, 50, 60];
for element in a.iter() {
println!("The value is:{}", element)
}
}
fn main() {
for element in (1..4).rev() {
...
fn main() {
let a = [10, 20, 30, 40, 50, 60];
for element in a.iter() {
println!("The value is:{}", element)
}
}
fn main() {
for element in (1..4).rev() {
...