1
0
Fork 0
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:
Jason Hall 2025-06-07 21:27:18 -04:00
parent 5dc87b282e
commit 6681c2aef5
Failed to extract signature
8 changed files with 93 additions and 7 deletions

View file

@ -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);