Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Add cargo-fmt into image #8

@tyranron

Description

@tyranron

There is already rustfmt inside image, so we can use it like rustfmt .... Unfortunately cargo-fmt is missing which makes impossible to run something like:

docker run --rm -v "$(pwd)":/app -w /app rustlang/rust:nightly-slim cargo fmt --all

That feels like partially done feature, and to actually use rustfmt on CI within a project everyone have to come up with custom Docker image where the only difference is:

# rustup component add rustfmt-preview
info: downloading component 'rustfmt-preview'
  3.9 MiB /   3.9 MiB (100 %)   1.8 MiB/s ETA:   0 s                
info: installing component 'rustfmt-preview'

Maybe it's worth to add one inside nightly images by default? It's only 4 MiB.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions