Skip to content

Commit

Permalink
Support resolved macros in named deps in autocargo
Browse files Browse the repository at this point in the history
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
  • Loading branch information
David Tolnay authored and facebook-github-bot committed Jun 17, 2024
1 parent bc425da commit 839bc3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion below/model/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand Down

0 comments on commit 839bc3a

Please sign in to comment.