ci: add cargo caching to pre-commit workflow (#2351)
* ci: add cargo caching to pre-commit workflow
Co-Authored-By: Jayant Krishnamurthy <jayant@dourolabs.xyz>
* ci: switch to rust-cache action for better caching
- Replace manual cargo caching with Swatinem/rust-cache
- Eliminates version management risk
- Provides more sophisticated caching behavior
Co-Authored-By: Jayant Krishnamurthy <jayant@dourolabs.xyz>
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Jayant Krishnamurthy <jayant@dourolabs.xyz>