summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Tolnay <dtolnay@meta.com>2024-06-17 07:31:54 -0700
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>2024-06-17 07:31:54 -0700
commit839bc3a46c39283e9f6d5cfc03f6a2c4a827f42d (patch)
tree5da1d58c9cf2bfc8250543c77b13d173715b42c6
parentbc425da870a2daa574977aa4f4ee329b7cdcd71f (diff)
Support resolved macros in named deps in autocargo
Summary: This diff implements support for dynamically computed `named_deps` crate names in autocargo using the same mechanism that was used to support them in rust-analyzer in D58638036. Buck2 exposes a `…[named_deps]` subtarget which is a file containing the actual name of all the named deps, and when producing autocargo's JSON input from fbcode_macros we can read this and update the `named_deps` dictionary entry with the real crate name, similar to how we already update `crate` in a similar way by reading the value of `crate_dynamic` from a file. Reviewed By: zertosh Differential Revision: D58656554 fbshipit-source-id: 1e3de91852b1aad8d0212295b729099c6eedf984
-rw-r--r--below/model/Cargo.toml2
1 files changed, 1 insertions, 1 deletions
diff --git a/below/model/Cargo.toml b/below/model/Cargo.toml
index 46522df2..32e94637 100644
--- a/below/model/Cargo.toml
+++ b/below/model/Cargo.toml
@@ -18,7 +18,7 @@ cgroupfs = { version = "0.8.1", path = "../cgroupfs" }
common = { package = "below-common", version = "0.8.1", path = "../common" }
enum-iterator = "1.4.1"
ethtool = { package = "below-ethtool", version = "0.8.1", path = "../ethtool" }
-gpu-stats = { package = "below-gpu-stats", version = "0.8.1", path = "../gpu_stats" }
+gpu_stats = { package = "below-gpu-stats", version = "0.8.1", path = "../gpu_stats" }
hostname = "0.3"
os_info = "3.0.7"
procfs = { package = "fb_procfs", version = "0.8.1", path = "../procfs" }