Skip to content

MSI installer is missing clippy and rustfmt #101993

Closed

Description

@Hawk777

I installed Rust 1.63.0 in Windows via the MSI installer. I enabled all optional features during the installation process. However, it seems that clippy and rustfmt are not available via the MSI installer. It seems that the MSI installer is oriented at development use and not just building existing Rust code from source for deployment (otherwise it wouldn’t include RLS, which is only useful for development), so there ought to be a way to get access to clippy and rustfmt through it—and one can’t just cargo install them, at least not clippy, because cargo install clippy reports that clippy is no longer available via crates.io.

Sorry if this is the wrong repo to report MSI installer issues; with 190 repos in the group, it can be hard to find the right one.

Activity

  1. added
    T-releaseRelevant to the release subteam, which will review and decide on the PR/issue.
    on Sep 18, 2022
  2. jyn514 commented on Sep 18, 2022

    @jyn514
    Member

    Hmm, there's code for clippy in dist.rs - not sure what's going wrong there, someone would need to investigate.

    rust/src/bootstrap/dist.rs

    Lines 1617 to 1633 in ed37111

    builder.run(
    Command::new(&heat)
    .current_dir(&exe)
    .arg("dir")
    .arg("clippy")
    .args(&heat_flags)
    .arg("-cg")
    .arg("ClippyGroup")
    .arg("-dr")
    .arg("Clippy")
    .arg("-var")
    .arg("var.ClippyDir")
    .arg("-out")
    .arg(exe.join("ClippyGroup.wxs"))
    .arg("-t")
    .arg(etc.join("msi/remove-duplicates.xsl")),
    );

    Rustfmt does appear to just be omitted altogether, that should be a simple fix.

  3. added
    T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
    E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.
    on Sep 19, 2022
  4. chenyukang commented on Sep 20, 2022

    @chenyukang
    Member

    I see rustfmt is not called with prepare, but clippy is there:

                prepare("clippy");
                for tool in &["rust-demangler", "rust-analyzer", "miri"] {
                    if built_tools.contains(tool) {
                        prepare(tool);
                    }
                }
                if target.ends_with("windows-gnu") {
                    prepare("rust-mingw");
                }
  5. chenyukang commented on Sep 20, 2022

    @chenyukang
    Member

    have a diff from cargo --list between rustup from installation and MSI installer:

    9d8
    <     clippy               Checks a package to catch common mistakes and improve your Rust code.
    15d13
    <     fmt                  Formats all bin and lib files of the current crate using rustfmt.
    25d22
    <     miri
    46a44
    >

    seems miri also missing.

  6. Hawk777 commented on Sep 20, 2022

    @Hawk777
    ContributorAuthor

    Here’s a list of the files in the bin/ subdirectory of my install directory, in case it’s relevant:

    • cargo.exe
    • rls.exe
    • rustc_driver-17b2400b2defcd83.dll
    • rustc_driver-17b2400b2defcd83.pdb
    • rustc.exe
    • rustc_main-6addbff947989b19.pdb
    • rustdoc.exe
    • rust-windbg.cmd
    • std-2e5a4fde2066d4f2.dll
    • std-2e5a4fde2066d4f2.pdb
    • test-2fc9b45aeebba85a.dll
    • test-2fc9b45aeebba85a.pdb
  7. added
    O-windowsOperating system: Windows
    T-dev-toolsRelevant to the dev-tools subteam, which will review and decide on the PR/issue.
    on Mar 1, 2023
  8. heiseish commented on Sep 27, 2024

    @heiseish
    Contributor

    @rustbot claim

  9. added a commit that references this issue on Oct 20, 2024
  10. added a commit that references this issue on Oct 20, 2024
  11. added a commit that references this issue on Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

C-bugCategory: This is a bug.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.O-windowsOperating system: WindowsT-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)T-dev-toolsRelevant to the dev-tools subteam, which will review and decide on the PR/issue.T-releaseRelevant to the release subteam, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions