Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Rust CI Image
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Infrastructure Components
Rust CI Image
Commits
d020fb82
Verified
Commit
d020fb82
authored
3 months ago
by
Louis
Browse files
Options
Downloads
Patches
Plain Diff
Add README.md
parent
6e95d5a6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#636
passed with stage
in 34 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+39
-0
39 additions, 0 deletions
README.md
with
39 additions
and
0 deletions
README.md
0 → 100644
+
39
−
0
View file @
d020fb82
# Rust Base Image
Rust base image for use in Gitlab CI. Includes extra tools to support the CI use case
## Usage
To use this image as the base for your CI pipeline, include the following at the head of your
`.gitlab-ci.yml`
:
```
yaml
image
:
cr.weirdboi.dev/base/rust:1.82
```
To use this image for a specific pipeline job, include the following in your job spec:
```
yaml
my_build_step
:
stage
:
build
image
:
cr.weirdboi.dev/base/rust:1.82
script
:
# ...
```
## Additional Tools
### Rustup
-
Rustup is installed and configured using the default profile, which includes
`fmt`
and
`clippy`
.
-
Only the default linux x86-64 toolchain is installed
-
Stable rust is the default version, where the image tag dictates which rust version is being used
-
Nightly rust is installed, where the version is based on the build time of the image
### Cargo Tools
-
`cargo binstall`
- Install prebuilt binaries from crates.io
-
`cargo nextest`
- Efficient testing
### Extra Binaries
-
`junitify`
- Can be used to transform the output of
`cargo test`
into a junit.xml file
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment