Remove cachedir dependency (#11240)

## Summary

Vendor the `HEADER` constant too so we can eliminate the dependency on
`cachedir`.
This commit is contained in:
Jo 2025-02-05 21:54:02 +08:00 committed by GitHub
parent ee2bdc21fa
commit 6f8d9b85d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 2 additions and 13 deletions

View file

@ -16,7 +16,6 @@ doctest = false
workspace = true
[dependencies]
cachedir = { workspace = true }
dunce = { workspace = true }
either = { workspace = true }
encoding_rs_io = { workspace = true }

View file

@ -3,7 +3,8 @@
use std::io::Write;
use std::{io, path};
use cachedir::HEADER;
/// The `CACHEDIR.TAG` file header as defined by the [specification](https://bford.info/cachedir/).
const HEADER: &[u8; 43] = b"Signature: 8a477f597d28d172789f06886806bc55";
/// Adds a tag to the specified `directory`.
///