This image is designed to supercede the legacy CircleCI Rust image,
cimg/rust is a Docker image created by CircleCI with continuous integration builds in mind.
Each tag contains a complete Rust version and toolchain (such as rustfmt), and any binaries and tools that are required for builds to complete successfully in a CircleCI environment.
This image can be used with the CircleCI
1 2 3 4 5 6 7jobs: build: docker: - image: cimg/rust:1.74.0 steps: - checkout - run: cargo --version
In the above example, the CircleCI Rust Docker image is used for the primary container.
More specifically, the tag
1.74.0 is used meaning the version of Rust will be Rust v1.74.0.
You can now use Rust within the steps for this job.
This image contains the Rust programming language and its complete toolchain.
This image has the following tagging scheme:
<rust-version> - The version of Rust to use.
This can be a full SemVer point release (such as
1.43.0) or just the minor release (such as
If you use the minor release tag, it will automatically point to future patch updates as they are released by the Rust Team.
For example, the tag
1.43 points to Rust v1.43.0 now, but when the next release comes out, it will point to Rust v1.43.1.
[-variant] - Variant tags, if available, can optionally be used.
For example, the Node.js variant could be used like this:
Variant images typically contain the same base software, but with a few additional modifications.
The Node.js variant is the same Rust image but with Node.js also installed.
The Node.js variant can be used by appending
-node to the end of an existing
1 2 3 4 5 6 7 8jobs: build: docker: - image: cimg/rust:1.74.0-node steps: - checkout - run: cargo --version - run: node --version
The browsers variant is the same Rust image but with Node.js, Java, Selenium, and browser dependencies pre-installed via apt.
The browsers variant can be used by appending
-browser to the end of an existing
The browsers variant is designed to work in conjunction with the CircleCI Browser Tools orb.
You can use the orb to install a version of Google Chrome and/or Firefox into your build. The image contains all of the supporting tools needed to use both the browser and its driver.
1 2 3 4 5 6 7 8 9 10 11 12 13 14orbs: browser-tools: firstname.lastname@example.org jobs: build: docker: - image: cimg/rust:1.45-browsers steps: - browser-tools/install-browser-tools - checkout - run: | cargo --version node --version java --version google-chrome --version