mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-03 18:38:21 +00:00
Remove cachedir
dependency (#11240)
## Summary Vendor the `HEADER` constant too so we can eliminate the dependency on `cachedir`.
This commit is contained in:
parent
ee2bdc21fa
commit
6f8d9b85d8
4 changed files with 2 additions and 13 deletions
|
@ -16,7 +16,6 @@ doctest = false
|
|||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
cachedir = { workspace = true }
|
||||
dunce = { workspace = true }
|
||||
either = { workspace = true }
|
||||
encoding_rs_io = { workspace = true }
|
||||
|
|
|
@ -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`.
|
||||
///
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue