rust-lang / rust-lang/rust-clippy
Using cargo clippy without rustup
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 13.5k
- Forks
- 2.2k
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 32
Description
My Problem
I work on an air-gapped system. Therefore I currently need to install cargo without rustup. However cargo clippy is only available as part of the rustup toolchain (I get error: no override and no default toolchain set if I execute cargo clippy).
cargo-driver works fine, however working on complex projects with many dependency means this is no solution for me.
Potential Solutions
I would like to run cargo clippy on my air-gapped system. I see two possible solutions:
- Allow rustup to run on offline systems.
- Allow cargo clippy to run without rustup.
I am unsure how much work an rustup independent clippy would be, or even why this restriction is currently in place. "rustup on offline systems" seems like a very hard problem to tackle.
Notes
I have also opened a ticket in cargo's tracker https://github.com/rust-lang/cargo/issues/9505 but was pointed to this project instead.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing how cargo clippy is exposed through rustup and reviewing the Cargo integration; the issue names no source files or tests. Determine whether offline rustup support or rustup-independent invocation is in scope, then verify the selected behavior by running cargo clippy without rustup on an air-gapped system.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100