Ben Chuanlong Du's Blog

It is never too late to learn.

Cargo Build Script Add Wings to Cargo Build

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

  1. build.rs is located in the root directory of the project.

  2. build.rs can be used to directly generate a module or generate some Rust code to be included in another …

Compiler and Build Tools

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Compilers

gcc

g++

clang

llvm

Project Management Tools

gradle

Build Tools

dockcross

dockcross is a compiling toolchains in Docker images .

ninja

ninja is a small build system with a focus on …

Tips on Creating Docker Images

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

  1. Docker caches building operations. When cache for an operation is available, Docker use the cache layer directly and avoid building the layer again.

  2. The command ARG creates environment variables for build-time …