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