mirror of
https://github.com/imjasonh/krust
synced 2026-07-17 22:44:56 +00:00
Add pre-commit hooks for code quality
- Add .pre-commit-config.yaml with rustfmt, clippy, and cargo check - Include standard pre-commit hooks for whitespace and file fixes - Update README with development setup instructions - Fix formatting and trailing whitespace in various files 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
5dc87b282e
commit
6681c2aef5
8 changed files with 93 additions and 7 deletions
|
|
@ -57,11 +57,15 @@ impl RustBuilder {
|
|||
} else {
|
||||
// Try common linker names on other platforms
|
||||
let linkers = if cfg!(target_os = "macos") {
|
||||
vec!["x86_64-unknown-linux-musl-gcc", "x86_64-linux-musl-gcc", "musl-gcc"]
|
||||
vec![
|
||||
"x86_64-unknown-linux-musl-gcc",
|
||||
"x86_64-linux-musl-gcc",
|
||||
"musl-gcc",
|
||||
]
|
||||
} else {
|
||||
vec!["x86_64-linux-musl-gcc", "musl-gcc", "x86_64-linux-gnu-gcc"]
|
||||
};
|
||||
|
||||
|
||||
for linker in &linkers {
|
||||
if which::which(linker).is_ok() {
|
||||
cmd.env("CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_LINKER", linker);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue