pre-commit-rust icon indicating copy to clipboard operation
pre-commit-rust copied to clipboard

Change language to rust to let pre-commit bootstrap rust

Open leoleoasd opened this issue 2 years ago • 2 comments

  • Change language to rust to let pre-commit bootstrap rust
  • Add an empty cargo.toml to fool the build system

Currently, this would fail on pre-commit.ci since it doesn't declare itself that it requires cargo.

See: before, after.

cargo fmt will work now. cargo clippy still won't work since it requires access to the internet.

leoleoasd avatar Mar 14 '23 12:03 leoleoasd

this would be really nice

frank1010111 avatar Jan 16 '24 23:01 frank1010111

I prefer this as an option as exact version of rust is important. E.g. some projects use nightly starting from specific version and cargo fmt would not recognize formatting options.

eirnym avatar May 03 '24 15:05 eirnym