From e00acf9968703e80e60c39eacec0e2f3f82d8f56 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Tue, 28 Oct 2025 12:55:43 -0700 Subject: [PATCH] Support uuid "rng-getrandom" feature Summary: Required in D85438479, which contains a handwritten Cargo.toml (fbcode/pyrefly/pyrefly_wasm/Cargo.toml) that gets incorporated into an Autocargo-generated Cargo.lock (fbcode/pyrefly/Cargo.lock). In order for the handwritten Cargo.toml to be able to use uuid with "rng-getrandom", the Cargo.lock generation needs to have offline access to all the transitive dependencies pulled by this feature. https://www.internalfb.com/code/fbsource/[0cc72b95913a155b4ae4b660196a25e4c23cd6b1]/fbcode/pyrefly/pyrefly_wasm/Cargo.toml?lines=17%2C26 Reviewed By: diliop Differential Revision: D85680730 --- eden/fs/cli_rs/edenfs-client/Cargo.toml | 2 +- eden/mononoke/blobrepo/blobrepo_hg/Cargo.toml | 2 +- eden/mononoke/blobstore_sync_queue/Cargo.toml | 2 +- eden/mononoke/modern_sync/Cargo.toml | 2 +- eden/scm/lib/treestate/Cargo.toml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/eden/fs/cli_rs/edenfs-client/Cargo.toml b/eden/fs/cli_rs/edenfs-client/Cargo.toml index d1c34ea54405c..650cd2f57a442 100644 --- a/eden/fs/cli_rs/edenfs-client/Cargo.toml +++ b/eden/fs/cli_rs/edenfs-client/Cargo.toml @@ -42,7 +42,7 @@ thrift_streaming_clients = { version = "0.1.0", path = "../../service/thrift_str tokio = { version = "1.47.1", features = ["full", "test-util", "tracing"] } toml = { version = "0.9.8", features = ["preserve_order"] } tracing = { version = "0.1.41", features = ["attributes", "valuable"] } -uuid = { version = "1.17", features = ["serde", "v4", "v5", "v6", "v7", "v8"] } +uuid = { version = "1.17", features = ["rng-getrandom", "serde", "v4", "v5", "v6", "v7", "v8"] } whoami = "1.5" [dev-dependencies] diff --git a/eden/mononoke/blobrepo/blobrepo_hg/Cargo.toml b/eden/mononoke/blobrepo/blobrepo_hg/Cargo.toml index 9d3f04f067634..9de634b81ce5d 100644 --- a/eden/mononoke/blobrepo/blobrepo_hg/Cargo.toml +++ b/eden/mononoke/blobrepo/blobrepo_hg/Cargo.toml @@ -32,7 +32,7 @@ repo_derived_data = { version = "0.1.0", path = "../../repo_attributes/repo_deri scuba_ext = { version = "0.1.0", path = "../../common/scuba_ext" } sorted_vector_map = { version = "0.2.0", git = "https://github.com/facebookexperimental/rust-shed.git", branch = "main" } stats = { version = "0.1.0", git = "https://github.com/facebookexperimental/rust-shed.git", branch = "main" } -uuid = { version = "1.17", features = ["serde", "v4", "v5", "v6", "v7", "v8"] } +uuid = { version = "1.17", features = ["rng-getrandom", "serde", "v4", "v5", "v6", "v7", "v8"] } [dev-dependencies] fbinit = { version = "0.2.0", git = "https://github.com/facebookexperimental/rust-shed.git", branch = "main" } diff --git a/eden/mononoke/blobstore_sync_queue/Cargo.toml b/eden/mononoke/blobstore_sync_queue/Cargo.toml index e6479d5246202..3e2a21e1bca3a 100644 --- a/eden/mononoke/blobstore_sync_queue/Cargo.toml +++ b/eden/mononoke/blobstore_sync_queue/Cargo.toml @@ -27,7 +27,7 @@ sql = { version = "0.1.0", git = "https://github.com/facebookexperimental/rust-s sql_common = { version = "0.1.0", git = "https://github.com/facebookexperimental/rust-shed.git", branch = "main" } sql_construct = { version = "0.1.0", path = "../common/sql_construct" } sql_ext = { version = "0.1.0", path = "../common/rust/sql_ext" } -uuid = { version = "1.17", features = ["serde", "v4", "v5", "v6", "v7", "v8"] } +uuid = { version = "1.17", features = ["rng-getrandom", "serde", "v4", "v5", "v6", "v7", "v8"] } vec1 = { version = "1", features = ["serde"] } [dev-dependencies] diff --git a/eden/mononoke/modern_sync/Cargo.toml b/eden/mononoke/modern_sync/Cargo.toml index 1aeff9eaa3e3f..2051938e567de 100644 --- a/eden/mononoke/modern_sync/Cargo.toml +++ b/eden/mononoke/modern_sync/Cargo.toml @@ -53,4 +53,4 @@ stats = { version = "0.1.0", git = "https://github.com/facebookexperimental/rust tokio = { version = "1.47.1", features = ["full", "test-util", "tracing"] } tracing = { version = "0.1.41", features = ["attributes", "valuable"] } url = "2.5.4" -uuid = { version = "1.17", features = ["serde", "v4", "v5", "v6", "v7", "v8"] } +uuid = { version = "1.17", features = ["rng-getrandom", "serde", "v4", "v5", "v6", "v7", "v8"] } diff --git a/eden/scm/lib/treestate/Cargo.toml b/eden/scm/lib/treestate/Cargo.toml index 6218dbfbb2718..9a806d0f4ab60 100644 --- a/eden/scm/lib/treestate/Cargo.toml +++ b/eden/scm/lib/treestate/Cargo.toml @@ -28,7 +28,7 @@ sha2 = "0.10.6" thiserror = "2.0.12" tracing = { version = "0.1.41", features = ["attributes", "valuable"] } twox-hash = "1.6.1" -uuid = { version = "1.17", features = ["serde", "v4", "v5", "v6", "v7", "v8"] } +uuid = { version = "1.17", features = ["rng-getrandom", "serde", "v4", "v5", "v6", "v7", "v8"] } [dev-dependencies] itertools = "0.14.0"