Thread-safe cache of binary SHA256 hashes for TOFU enforcement.
| 75 | |
| 76 | /// Thread-safe cache of binary SHA256 hashes for TOFU enforcement. |
| 77 | pub struct BinaryIdentityCache { |
| 78 | #[cfg_attr(not(target_os = "linux"), allow(dead_code))] |
| 79 | hashes: Mutex<HashMap<PathBuf, CachedBinary>>, |
| 80 | } |
| 81 | |
| 82 | impl Default for BinaryIdentityCache { |
| 83 | fn default() -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected