Commit 01e3a2c
Buildscript fixups for aws-lc-rs, zerocopy, oid-registry
Summary:
OSS bootstrap build fails on crate build scripts that require runtime resources or Cargo-specific machinery not provided by the Buck build:
- aws-lc-rs panics with "missing DEP_AWS_LC_ include" because it depends on aws-lc-sys exporting DEP_AWS_LC_INCLUDE via Cargo's `links` metadata, which Buck does not forward. Skip the build script entirely (matches fbsource third-party/rust).
- zerocopy 0.8 panics reading its own Cargo.toml because its build.rs expects CARGO_MANIFEST_DIR to resolve to a directory containing Cargo.toml, which is not how reindeer-generated Buck targets are laid out. Skip the build script entirely (matches fbsource third-party/rust).
- oid-registry 0.6 panics with ENOENT because its build.rs calls load_file("assets/oid_db.txt") at runtime. precise_srcs detects files referenced via include!/mod/similar macros but not string-based file reads, so the asset was not materialized into the build-script sandbox. Declare it explicitly via extra_srcs.
Reviewed By: JakobDegen, dtolnay
Differential Revision: D101252116
fbshipit-source-id: 2096f9a80b0c3d76d3a3a40a64bd5901dea55c3c1 parent d07de44 commit 01e3a2c
3 files changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
0 commit comments