You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Synthesize build scripts that Cargo failed to vendor
Summary:
This is a workaround for [rust-lang/cargo#14348](rust-lang/cargo#14348), which is a regression in Rust 1.80's `cargo vendor`.
4 crates in fbsource/third-party/rust are currently impacted:
- `cxx-build`
- `cxxbridge-cmd`
- `cxxbridge-macro`
- `orjson` (https://github.com/ijl/orjson)
The workaround works by writing a build.rs containing just `fn main() {}` for crates where Cargo has injected `build = "build.rs"` into their manifest without vendoring the corresponding build.rs.
We can delete this workaround once the Cargo bug is fixed.
Reviewed By: diliop
Differential Revision: D60855541
fbshipit-source-id: 553c3e45e8f0998fb3091b1f1a82f33b2d7c0a6f
0 commit comments