Environment for building ckb. How to Upgrade Rust Update rustup version if needed in gen-dockerfiles. Update rust version in gen-dockerfiles. Run the script gen-dockerfiles. Commit, tag rust-${RUST_VERSION} such as rust-1.51.0.