-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
1 parent
43c8308
commit bbaf511
Showing
3 changed files
with
76 additions
and
3 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters