Skip to content

Commit

Permalink
Remove cachedir dependency (#11240)
Browse files Browse the repository at this point in the history
## Summary

Vendor the `HEADER` constant too so we can eliminate the dependency on
`cachedir`.
  • Loading branch information
j178 authored Feb 5, 2025
1 parent ee2bdc2 commit 6f8d9b8
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 13 deletions.
10 changes: 0 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ base64 = { version = "0.22.1" }
bitflags = { version = "2.6.0" }
boxcar = { version = "0.2.5" }
bytecheck = { version = "0.8.0" }
cachedir = { version = "0.3.1" }
cargo-util = { version = "0.2.14" }
clap = { version = "4.5.17", features = ["derive", "env", "string", "wrap_help"] }
clap_complete_command = { version = "0.6.1" }
Expand Down
1 change: 0 additions & 1 deletion crates/uv-fs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ doctest = false
workspace = true

[dependencies]
cachedir = { workspace = true }
dunce = { workspace = true }
either = { workspace = true }
encoding_rs_io = { workspace = true }
Expand Down
3 changes: 2 additions & 1 deletion crates/uv-fs/src/cachedir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
///
Expand Down

0 comments on commit 6f8d9b8

Please sign in to comment.