Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Override GitHub language detection to show Rust instead of Makefile
# This is needed because Rust build generates many .d files with Makefile syntax

# Mark Rust files as detectable and prioritize them
*.rs linguist-detectable=true

# Exclude build artifacts and dependency files from language detection
*.d linguist-detectable=false
Makefile linguist-detectable=false
makefile linguist-detectable=false
GNUmakefile linguist-detectable=false

# Exclude other build artifacts and generated files
target/ linguist-generated=true
Cargo.lock linguist-generated=true
*.profraw linguist-generated=true

# Ensure template files are properly categorized
*.toml linguist-detectable=true
*.yml linguist-detectable=true
*.yaml linguist-detectable=true
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.