Docs.rs
slopguard-core-0.1.25
slopguard-core 0.1.25
Docs.rs crate page
MIT
22 September 2026
Links
Repository
crates.io
Source
Owners
ThomasTartrau
Dependencies
ast-grep-config ^0.45
normal
ast-grep-core ^0.45
normal
ast-grep-language ^0.45
normal
dirs ^7.0.0
normal
globset ^0.4
normal
ignore ^0.4
normal
rayon ^1
normal
rmp-serde ^1
normal
serde ^1
normal
serde_json ^1
normal
serde_yaml ^0.9
normal
sha2 ^0.10
normal
slopguard-rules ^0.1.14
normal
smart-default ^0.7.1
normal
strum ^0.27
normal
thiserror ^2
normal
toml ^0.8
normal
tempfile ^3
dev
Versions
44.77%
of the crate is documented
Go to latest version
Platform
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Skip to main content
Module cache
slopguard_
core
0.1.25
Module cache
Module Items
Structs
Enums
Functions
In crate slopguard_
core
slopguard_core
Module
cache
Copy item path
Source
Structs
§
Cache
Entry
What one scanned file leaves in the cache: its findings, the symbols it contributes to the cross-file index, and the imports it contributes to the resolution pass, so a cache hit feeds both project-wide passes without re-parsing the file.
Cache
Store
A file-based cache store for scan findings.
Enums
§
Cache
Error
Functions
§
ensure_
gitignored_
dir
Create
dir
(and parents) if missing and drop a
.gitignore
that ignores the entire cache directory. Idempotent.
file_
content_
hash
Compute the SHA256 hash of a file’s content.
rules_
hash
Compute a stable hash of the active rules by sorting them by id and hashing each rule’s serialized body along with the scanner’s own version.
sha256_
hex
Hex-encoded SHA256 of
data
. Shared by every cache key in the workspace.