total 147M
-rwxrwxrwx 12 root root 13M Mar 26 09:46 cargo
-rwxrwxrwx 12 root root 13M Mar 26 09:46 cargo-clippy
-rwxrwxrwx 12 root root 13M Mar 26 09:46 cargo-fmt
-rwxrwxrwx 12 root root 13M Mar 26 09:46 cargo-miri
-rwxrwxrwx 12 root root 13M Mar 26 09:46 clippy-driver
-rwxrwxrwx 12 root root 13M Mar 26 09:46 rls
-rwxrwxrwx 12 root root 13M Mar 26 09:46 rust-gdb
-rwxrwxrwx 12 root root 13M Mar 26 09:46 rust-lldb
-rwxrwxrwx 12 root root 13M Mar 26 09:46 rustc
-rwxrwxrwx 12 root root 13M Mar 26 09:46 rustdoc
-rwxrwxrwx 12 root root 13M Mar 26 09:46 rustfmt
-rwxrwxrwx 12 root root 13M Mar 26 09:46 rustup
error: 'rustfmt' is not installed for the toolchain '1.51.0-x86_64-unknown-linux-gnu'
To install, run `rustup component add rustfmt`
According the the Dockerfile, rustup-init will install minimal profile-ed components, which means it will install rustc, rust-std, and cargo only, not including rustfmt or others.
Those are wrapper binaries that rustup uses to delegate to the proper toolchain. You'd need to file an issue with rustup if you want to change how they work.
When run the following:
I found
rustfmt
was present, while not installed:According the the Dockerfile,
rustup-init
will install minimal profile-ed components, which means it will installrustc
,rust-std
, andcargo
only, not includingrustfmt
or others.Maybe
rustup-init
should be blamed.