| Build under buck2, with the toolchain pinned rather than found 460541b nandi 20d ago | 1 | # Files pulled in by include!/include_bytes!/include_str! that the |
| 2 | # default source globs miss. |
| 3 | extra_srcs = [ |
| 4 | "CHANGELOG.md", |
| 5 | "examples/class_with_lifetime.rs", |
| 6 | "examples/encode_core_graphics.rs", |
| 7 | "examples/encode_nsstring.rs", |
| 8 | "examples/encode_nsuinteger.rs", |
| 9 | "examples/encode_opaque_type.rs", |
| 10 | "examples/introspection.rs", |
| 11 | "src/topics/about_generated/CHANGELOG.md", |
| 12 | "src/topics/about_generated/README.md", |
| 13 | "src/topics/about_generated/cargo_features.md", |
| 14 | "src/topics/about_generated/deref.md", |
| 15 | "src/topics/about_generated/list_data.md", |
| 16 | "src/topics/layered_safety.md", |
| 17 | ] |
| 18 | |
| 19 | # Run the crate build script (emits cfgs / OUT_DIR sources). |
| Build both objects under buck2, against the BuildBuddy cache 600f207 nandi 19d ago | 20 | [buildscript.run] |
| 21 | # cargo sets OPT_LEVEL for every build script; buck2 does not, and cc-rs and |
| 22 | # a number of configure scripts read it unconditionally. |
| 23 | env = { OPT_LEVEL = "2" } |