Tag: Rust
-
Building Rust in Docker: Utilize Build Cache Properly!
From lucretiel‘s Tweet, which lead to one of his project’s Dockerfile… When building Rust in Docker, to cache the build, we can just add empty main.rs file, then run cargo build to build the dependencies first. Because the layer is cached, the built dependencies also cached too! After that, we can just import the rest…
-
Notes on Rust’s Borrowing Situations
This is my own notes from the original video by Gary Explains. My personal notes for my self: Things to ask/revisit again: Another thing Personal comments: OMG this particular video so great! He mentions what makes it different from other languages, making it easier to notice “Oh, bener juga yak”. (Min. 9:56) This one is…