Skip to content

Commit 293610a

Browse files
authored
Modernize Rust codebase: Update to Rust 2024, enhance clippy lints, and general improvements (#1694)
- Update Cargo.toml to Rust 2024 edition with comprehensive metadata - Add strict clippy configuration with proper priority handling - Fix chrono deprecation warnings in DateTime and NaiveDate usage - Replace unwrap() calls with safe pattern matching - Update dependencies to latest versions - Enhance Makefile with development targets (check, clippy, fmt, test, clean, help) - Add comprehensive lint groups for better code quality enforcement - Maintain backward compatibility while modernizing codebase
1 parent 036c2e2 commit 293610a

File tree

7 files changed

+697
-364
lines changed

7 files changed

+697
-364
lines changed

Makefile

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,38 @@
1-
.PHONY: render
1+
# Static Analysis Tools Repository Makefile
2+
3+
.PHONY: render render-skip-deprecated check clippy fmt test clean help
4+
5+
# Default target shows help
6+
help:
7+
@echo "Available targets:"
8+
@echo " render - Render README.md and JSON API from YAML sources"
9+
@echo " render-skip-deprecated - Render without deprecated tools"
10+
@echo " check - Run cargo check"
11+
@echo " clippy - Run clippy lints"
12+
@echo " fmt - Format Rust code"
13+
@echo " test - Run tests"
14+
@echo " clean - Clean build artifacts"
15+
@echo " help - Show this help"
16+
17+
# Main rendering targets
218
render:
319
cargo run --manifest-path data/render/Cargo.toml -- --tags data/tags.yml --tools data/tools --md-out README.md --json-out data/api
420

5-
.PHONY: render-skip-deprecated
621
render-skip-deprecated:
7-
cargo run --manifest-path data/render/Cargo.toml -- --tags data/tags.yml --tools data/tools --md-out README.md --json-out data/api --skip-deprecated
22+
cargo run --manifest-path data/render/Cargo.toml -- --tags data/tags.yml --tools data/tools --md-out README.md --json-out data/api --skip-deprecated
23+
24+
# Development targets
25+
check:
26+
cargo check --manifest-path data/render/Cargo.toml
27+
28+
clippy:
29+
cargo clippy --manifest-path data/render/Cargo.toml -- -D warnings
30+
31+
fmt:
32+
cargo fmt --manifest-path data/render/Cargo.toml
33+
34+
test:
35+
cargo test --manifest-path data/render/Cargo.toml
36+
37+
clean:
38+
cargo clean --manifest-path data/render/Cargo.toml

0 commit comments

Comments
 (0)