From 107abaa6b1d202d476e1fa1b7a1da0c4f473672c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 14 Feb 2026 07:56:07 +0000 Subject: [PATCH 1/6] Initial plan From d637ae1c7f3a77c386d80d3ed18857272b04023d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 14 Feb 2026 08:07:17 +0000 Subject: [PATCH 2/6] Fix minimal versions CI failure by updating dependency constraints Co-authored-by: Theaxiom <57013+Theaxiom@users.noreply.github.com> --- Cargo.toml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index d4827f0..3af6089 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -50,22 +50,30 @@ glob = "0.3" notify = { version = "6.1", features = ["macos_kqueue"] } # Error handling -anyhow = "1.0" -thiserror = "1.0" +anyhow = "1.0.40" # Minimum version for proper backtrace support with modern Rust +thiserror = "1.0.20" # Minimum version for full #[from] attribute support # Logging tracing = "0.1" -tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] } +tracing-subscriber = { version = "0.3.18", features = ["env-filter", "json"] } # Utilities -chrono = { version = "0.4", features = ["serde"] } +chrono = { version = "0.4.20", features = ["serde"] } # Minimum version with DateTime::default() uuid = { version = "1.8", features = ["v4"] } sha2 = "0.10" +# Ensure minimum version to avoid compatibility issues on nightly +# lazy_static 1.3.0+ properly exports macros needed by sharded-slab (used by tracing-subscriber) +lazy_static = "1.3" + # Optional performance optimizations memmap2 = { version = "0.9", optional = true } lru = { version = "0.12", optional = true } +# Ensure minimum version of hashbrown to avoid ahash stdsimd issue on nightly +# hashbrown 0.14.5+ requires ahash 0.8.7+ which is compatible with modern Rust nightly +hashbrown = { version = "0.14.5", optional = true } + # Terminal output crossterm = { version = "0.27", optional = true } colored = { version = "2.1", optional = true } @@ -83,7 +91,7 @@ default = ["cli", "cache", "colors"] cli = ["crossterm", "colored"] # Performance caching -cache = ["lru", "memmap2"] +cache = ["lru", "hashbrown", "memmap2"] # Colored terminal output colors = ["colored", "crossterm"] From db56761aab18bb2fb092ef1aac902c7e857937bd Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 14 Feb 2026 08:10:52 +0000 Subject: [PATCH 3/6] Document minimal versions fixes in CHANGELOG Co-authored-by: Theaxiom <57013+Theaxiom@users.noreply.github.com> --- CHANGELOG.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 710e44f..b875623 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,17 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [Unreleased] + +### Fixed +- **Minimal Versions CI Compatibility**: Updated minimum dependency versions to ensure compatibility with `cargo minimal-versions` testing on Rust nightly + - `hashbrown` ≥ 0.14.5 (fixes ahash stdsimd feature issue with modern nightly Rust) + - `lazy_static` ≥ 1.3.0 (fixes macro export issues with sharded-slab) + - `anyhow` ≥ 1.0.40 (fixes backtrace trait compatibility) + - `thiserror` ≥ 1.0.20 (ensures full #[from] attribute support) + - `chrono` ≥ 0.4.20 (ensures DateTime::default() implementation) + - `tracing-subscriber` ≥ 0.3.18 (uses compatible sharded-slab version) + ## [0.1.0] - 2024-08-16 🎉 **Initial release of Rust Guardian - Production-ready dynamic code quality enforcement** From 4c2a67a34820d2565a79d71f5b3f07bc00b9a8b4 Mon Sep 17 00:00:00 2001 From: Jeshua Ben Joseph Date: Sat, 14 Feb 2026 00:15:59 -0800 Subject: [PATCH 4/6] Update version --- Cargo.toml | 2 +- README.md | 1 - src/main.rs | 2 +- src/report/mod.rs | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 3af6089..16059c4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rust-guardian" -version = "0.1.0" +version = "0.1.1" edition = "2021" authors = ["The Rust Guardian Team"] description = "Dynamic code quality enforcement preventing incomplete or placeholder code" diff --git a/README.md b/README.md index 4a5059e..f7ff496 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,6 @@ Rust Guardian is a self-contained, production-ready crate for comprehensive code - **📊 Multiple Output Formats**: Human, JSON, JUnit, SARIF, GitHub Actions - **⚙️ Flexible Configuration**: YAML-based pattern customization - **🔄 Watch Mode**: Real-time validation during development -- **🎯 Zero Dependencies**: Self-contained with no external crate dependencies ## Quick Start diff --git a/src/main.rs b/src/main.rs index f410edf..07479b7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -16,7 +16,7 @@ use std::process; /// Rust Guardian - Dynamic code quality enforcement #[derive(Parser)] #[command(name = "rust-guardian")] -#[command(version = "0.1.0")] +#[command(version = "0.1.1")] #[command(about = "Dynamic code quality enforcement preventing incomplete or placeholder code")] #[command( long_about = "Rust Guardian analyzes code for quality violations, placeholder implementations, and architectural compliance. Designed for autonomous agent workflows and CI/CD integration." diff --git a/src/report/mod.rs b/src/report/mod.rs index 34c6c23..481b506 100644 --- a/src/report/mod.rs +++ b/src/report/mod.rs @@ -673,7 +673,7 @@ impl ReportFormatter { "tool": { "driver": { "name": "rust-guardian", - "version": "0.1.0", + "version": "0.1.1, "informationUri": "https://github.com/cloudfunnels/rust-guardian" } }, From b0be9ec2775de544a79788921dbd8bf4494727bf Mon Sep 17 00:00:00 2001 From: Jeshua Ben Joseph Date: Sat, 14 Feb 2026 00:29:48 -0800 Subject: [PATCH 5/6] Fix JSON formatting error in report version information --- src/report/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/report/mod.rs b/src/report/mod.rs index 481b506..d036a75 100644 --- a/src/report/mod.rs +++ b/src/report/mod.rs @@ -673,7 +673,7 @@ impl ReportFormatter { "tool": { "driver": { "name": "rust-guardian", - "version": "0.1.1, + "version": "0.1.1", "informationUri": "https://github.com/cloudfunnels/rust-guardian" } }, From 2d8269846e8e49888733d7288e725d43a8942273 Mon Sep 17 00:00:00 2001 From: Jeshua Ben Joseph Date: Sat, 14 Feb 2026 00:34:04 -0800 Subject: [PATCH 6/6] Update Codecov action configuration to use secret token and disable CI failure on error --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 24accc6..7bd78d1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -86,8 +86,9 @@ jobs: - name: Upload coverage to Codecov uses: codecov/codecov-action@v4 with: + token: ${{ secrets.CODECOV_TOKEN }} file: lcov.info - fail_ci_if_error: true + fail_ci_if_error: false security: name: Security Audit