Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

:rust

Rust compilation toolchain. Inherits all :core tools.

Base

FROM ghcr.io/driftsys/dock:core (via build context)

Installed tools

ToolInstall methodPurpose
rustc, cargorustup stableRust compiler and package manager
clippyrustup componentLinter
rustfmtrustup componentFormatter
cargo-auditcargo install --lockedSecurity advisory scanner
cargo-denycargo install --lockedDependency policy checker
gcc, g++apk (Alpine)C/C++ compiler for build scripts
musl-devapkmusl libc headers
pkg-configpkgconf (apk)Build configuration helper
openssl-devapkOpenSSL headers for Rust crates

Usage in CI

jobs:
  test:
    runs-on: ubuntu-latest
    container: ghcr.io/driftsys/dock:rust
    steps:
      - uses: actions/checkout@v4
      - run: cargo test
      - run: cargo clippy -- -D warnings
      - run: cargo audit

Approximate size

~260 MB (Alpine)