Docker image for building rust projects. https://git.kemitix.net/kemitix/rust
Find a file
Paul Campbell 856cce5c03
All checks were successful
/ test (map[name:nightly]) (push) Successful in 2m47s
/ test (map[name:stable]) (push) Successful in 3m48s
/ test (map[name:v1.74.1]) (push) Successful in 1m37s
build: install nightly and v1.74.1 directly in dockerfile
Switching test from 1.81.0 to 1.74.1 to match an MSRV that I actually use.
2025-01-11 20:07:05 +00:00
.forgejo/workflows build: install nightly and v1.74.1 directly in dockerfile 2025-01-11 20:07:05 +00:00
src Add sample app to build and test 2024-05-16 19:46:05 +01:00
.gitignore build: add 'mise run test' 2025-01-11 18:26:16 +00:00
Cargo.toml Add sample app to build and test 2024-05-16 19:46:05 +01:00
Dockerfile build: install nightly and v1.74.1 directly in dockerfile 2025-01-11 20:07:05 +00:00
entrypoint.sh build: build and publish image nightly 2025-01-10 20:12:18 +00:00
LICENSE Initial commit 2024-05-16 17:59:27 +01:00
mise.toml build: add 'mise run test' 2025-01-11 18:26:16 +00:00
README.md docs: update version and contents in readme 2024-11-14 09:08:24 +00:00
renovate.json Add renovate.json 2024-08-02 18:16:19 +00:00

docker-builder-rust

Docker image for building Rust projects with Cargo.

Usage

In a Forgejo action file, e.g. .forgejo/workflows/test.yml:

on: [push]
jobs:
  test:
    runs-on: docker
    steps:
      - uses: https://git.kemitix.net/kemitix/rust@v2.4.0
        with:
          args: nightly cargo test
      - uses: https://git.kemitix.net/kemitix/rust@v2.4.0
        with:
          args: v1.79.0 cargo build

The args is one of the following:

  • <COMMAND>
  • [ nightly | stable | v1.xx.x ] <COMMAND>

COMMAND is the command you want to run. The optional prefix is the Rust toolchain, or version. Allowed values are nightly, stable or a Rust version.

Where the optional prefix is not given, the stable toolchain will be used. The stable version is currently 1.82.0.

Contents

  • nodejs
  • rust
  • git
  • cargo
  • cargo-binstall
  • cargo-mutants
  • cargo-chef
  • cargo-hack
  • release-plz

Binary size

To reduce the size of the debug binary, add the following to the .cargo/config.toml file in you project.

[profile.dev]
debug = 0
strip = "debuginfo"