| Build under buck2, with the toolchain pinned rather than found 460541b nandi 19d ago | 1 | # Reindeer configuration for the buck2 third-party Rust crates. |
| 2 | vendor = {} |
| 3 | |
| 4 | # Crates read CARGO_PKG_* at compile time; without this they fail to build. |
| 5 | cargo_env = true |
| 6 | |
| 7 | # Feature resolution runs once per platform. Naming any platform replaces |
| 8 | # reindeer's default list; these are the desktop hosts this repo ships for. |
| 9 | [platform.linux-x86_64] |
| 10 | target = "x86_64-unknown-linux-gnu" |
| 11 | execution-platform = true |
| 12 | |
| 13 | [platform.linux-arm64] |
| 14 | target = "aarch64-unknown-linux-gnu" |
| 15 | execution-platform = true |
| 16 | |
| 17 | [platform.macos-x86_64] |
| 18 | target = "x86_64-apple-darwin" |
| 19 | execution-platform = true |
| 20 | |
| 21 | [platform.macos-arm64] |
| 22 | target = "aarch64-apple-darwin" |
| 23 | execution-platform = true |
| 24 | |
| 25 | [buck] |
| 26 | file_name = "BUCK" |
| 27 | buckfile_imports = """ |
| 28 | load("@prelude//rust:cargo_package.bzl", "cargo") |
| 29 | load("@prelude//rust:cargo_buildscript.bzl", "buildscript_run") |
| 30 | """ |
| 31 | rust_library = "cargo.rust_library" |
| 32 | rust_binary = "cargo.rust_binary" |