From 287b5ca490ba891559379ac36a1016e2589bfdaa Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Tue, 30 Jul 2024 09:25:28 -0700 Subject: [PATCH] Use buck_resources crate from crates.io Summary: Context: see {D60401586}. Reviewed By: zertosh Differential Revision: D60433346 fbshipit-source-id: 5e5aba53e921bf361bf77d4145001165f4d6ea62 --- Cargo.lock | 47 +++++++++++++++++++++++++++++++++++++++++++++-- Cargo.toml | 1 + 2 files changed, 46 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index e8fc581..70736bf 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -121,6 +121,19 @@ dependencies = [ "generic-array", ] +[[package]] +name = "buck-resources" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3e409aa63d3f8b24653571109600164dfc3955f69c80345fe0bd2231c5ff0673" +dependencies = [ + "dunce", + "once_cell", + "serde", + "serde_json", + "thiserror", +] + [[package]] name = "byteorder" version = "1.5.0" @@ -237,6 +250,7 @@ dependencies = [ "anyhow", "assert_matches", "blake3", + "buck-resources", "dirs", "dunce", "filetime", @@ -336,6 +350,12 @@ version = "0.4.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b71991ff56294aa922b450139ee08b3bfc70982c6b2c7562771375cf73542dd4" +[[package]] +name = "itoa" +version = "1.0.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1a46d1a171d865aa5f83f92695765caa047a9b4cbae2cbf37dbd613a793fd4c" + [[package]] name = "jobserver" version = "0.1.24" @@ -406,6 +426,12 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "61807f77802ff30975e01f4f071c8ba10c022052f98b3294119f3e615d13e5be" +[[package]] +name = "once_cell" +version = "1.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" + [[package]] name = "pin-utils" version = "0.1.0" @@ -483,6 +509,12 @@ version = "0.2.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b96a9549dc8d48f2c283938303c4b5a77aa29bfbc5b54b084fb1630408899a8f" +[[package]] +name = "ryu" +version = "1.0.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e86697c916019a8588c99b5fac3cead74ec0b4b819707a682fd4d23fa0ce1ba1" + [[package]] name = "serde" version = "1.0.203" @@ -503,14 +535,25 @@ dependencies = [ "syn", ] +[[package]] +name = "serde_json" +version = "1.0.116" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3e17db7126d17feb94eb3fad46bf1a96b034e8aacbc2e775fe81505f8b0b2813" +dependencies = [ + "itoa 1.0.10", + "ryu 1.0.17", + "serde", +] + [[package]] name = "serde_jsonrc" version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b591e90bcce7185aa4f8c775c504456586ae0f7df49a4087a1ee4179d402b8a8" dependencies = [ - "itoa", - "ryu", + "itoa 0.4.8", + "ryu 0.2.8", "serde", ] diff --git a/Cargo.toml b/Cargo.toml index e5f5cce..11129a3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -38,6 +38,7 @@ zstd = { version = "0.13", features = ["experimental", "zstdmt"] } [dev-dependencies] assert_matches = "1.5" +buck-resources = "1" snapbox = { version = "0.4.16", features = ["color-auto", "diff"], default-features = false } [target.'cfg(target_os = "linux")'.dependencies]