diff --git a/bootstrap/buck2 b/bootstrap/buck2 new file mode 100755 index 0000000000000..f89cd34eaddfe --- /dev/null +++ b/bootstrap/buck2 @@ -0,0 +1,67 @@ +#!/usr/bin/env dotslash + +{ + "name": "buck2", + "platforms": { + "macos-aarch64": { + "size": 29114459, + "hash": "blake3", + "digest": "4ffe0fe712a9452999a4cc15d22f00f71349b66d399869ae24f7cb219f8db6fc", + "format": "zst", + "path": "buck2-aarch64-apple-darwin", + "providers": [ + { + "url": "https://github.com/facebook/buck2/releases/download/2025-05-06/buck2-aarch64-apple-darwin.zst" + } + ] + }, + "linux-aarch64": { + "size": 30289600, + "hash": "blake3", + "digest": "bbb4d04da8deca8a197bffd9cf60b6057e4765a32d01dd28d495f5571dbdc96b", + "format": "zst", + "path": "buck2-aarch64-unknown-linux-musl", + "providers": [ + { + "url": "https://github.com/facebook/buck2/releases/download/2025-05-06/buck2-aarch64-unknown-linux-musl.zst" + } + ] + }, + "macos-x86_64": { + "size": 30844254, + "hash": "blake3", + "digest": "16f91ed791032288475d4bbe9601994bcbdae07f6778000565f222af698e61d4", + "format": "zst", + "path": "buck2-x86_64-apple-darwin", + "providers": [ + { + "url": "https://github.com/facebook/buck2/releases/download/2025-05-06/buck2-x86_64-apple-darwin.zst" + } + ] + }, + "windows-x86_64": { + "size": 25998099, + "hash": "blake3", + "digest": "9820d6e6c44ad8374ba35b8dae65c39813ba280875677bbb87c377cd33938b38", + "format": "zst", + "path": "buck2-x86_64-pc-windows-msvc.exe", + "providers": [ + { + "url": "https://github.com/facebook/buck2/releases/download/2025-05-06/buck2-x86_64-pc-windows-msvc.exe.zst" + } + ] + }, + "linux-x86_64": { + "size": 31572599, + "hash": "blake3", + "digest": "1499fa841ba87adb5cceaf3b4680db1db79967a14470bd40a344788d03e75082", + "format": "zst", + "path": "buck2-x86_64-unknown-linux-musl", + "providers": [ + { + "url": "https://github.com/facebook/buck2/releases/download/2025-05-06/buck2-x86_64-unknown-linux-musl.zst" + } + ] + } + } +} diff --git a/bootstrap/buck2.exe b/bootstrap/buck2.exe new file mode 100644 index 0000000000000..cbfa4e3c9256a Binary files /dev/null and b/bootstrap/buck2.exe differ diff --git a/bootstrap/reindeer b/bootstrap/reindeer new file mode 100755 index 0000000000000..46c916cd1b580 --- /dev/null +++ b/bootstrap/reindeer @@ -0,0 +1,67 @@ +#!/usr/bin/env dotslash + +{ + "name": "reindeer", + "platforms": { + "macos-aarch64": { + "size": 6298978, + "hash": "blake3", + "digest": "c1d4200632a1db3f53663c147d9e9cb3e62137afcd09dd3b9bcf44f2e671a41f", + "format": "zst", + "path": "reindeer-aarch64-apple-darwin", + "providers": [ + { + "url": "https://github.com/facebookincubator/reindeer/releases/download/v2025.05.06.00/reindeer-aarch64-apple-darwin.zst" + } + ] + }, + "linux-aarch64": { + "size": 6534825, + "hash": "blake3", + "digest": "5ddbd93c41fb6817bf70681be51ed4c84cea52f8ed2b6f26d49057994ace1ea2", + "format": "zst", + "path": "reindeer-aarch64-unknown-linux-musl", + "providers": [ + { + "url": "https://github.com/facebookincubator/reindeer/releases/download/v2025.05.06.00/reindeer-aarch64-unknown-linux-musl.zst" + } + ] + }, + "macos-x86_64": { + "size": 6605675, + "hash": "blake3", + "digest": "bfc07e2ef45d3c57e30cbb54529b14677ebe064353568f0cb2adec4c65ccfcc8", + "format": "zst", + "path": "reindeer-x86_64-apple-darwin", + "providers": [ + { + "url": "https://github.com/facebookincubator/reindeer/releases/download/v2025.05.06.00/reindeer-x86_64-apple-darwin.zst" + } + ] + }, + "windows-x86_64": { + "size": 6348931, + "hash": "blake3", + "digest": "08cd4da3a5ee5252f63feab5372f12dda4e839480239609e0a3f024e4dc4753c", + "format": "zst", + "path": "reindeer-x86_64-pc-windows-msvc.exe", + "providers": [ + { + "url": "https://github.com/facebookincubator/reindeer/releases/download/v2025.05.06.00/reindeer-x86_64-pc-windows-msvc.exe.zst" + } + ] + }, + "linux-x86_64": { + "size": 6889412, + "hash": "blake3", + "digest": "e96324c0ee74bc972c2ffb6beb0f089eab9ec27891b870cd5aefb90b35686a84", + "format": "zst", + "path": "reindeer-x86_64-unknown-linux-musl", + "providers": [ + { + "url": "https://github.com/facebookincubator/reindeer/releases/download/v2025.05.06.00/reindeer-x86_64-unknown-linux-musl.zst" + } + ] + } + } +} diff --git a/bootstrap/reindeer.exe b/bootstrap/reindeer.exe new file mode 100644 index 0000000000000..cbfa4e3c9256a Binary files /dev/null and b/bootstrap/reindeer.exe differ diff --git a/bootstrap/rust-project b/bootstrap/rust-project new file mode 100755 index 0000000000000..ce03d0108aa1a --- /dev/null +++ b/bootstrap/rust-project @@ -0,0 +1,67 @@ +#!/usr/bin/env dotslash + +{ + "name": "rust-project", + "platforms": { + "macos-aarch64": { + "size": 1298055, + "hash": "blake3", + "digest": "6a7db2b2d4b4ad54e402df6b56830f96fd8e8cb6cb402c21608c42c5a9262267", + "format": "zst", + "path": "rust-project-aarch64-apple-darwin", + "providers": [ + { + "url": "https://github.com/facebook/buck2/releases/download/2025-05-06/rust-project-aarch64-apple-darwin.zst" + } + ] + }, + "linux-aarch64": { + "size": 1433031, + "hash": "blake3", + "digest": "db990d92ee9132e1eff4518acff4688992d795420c539052bf5d894b948432fa", + "format": "zst", + "path": "rust-project-aarch64-unknown-linux-musl", + "providers": [ + { + "url": "https://github.com/facebook/buck2/releases/download/2025-05-06/rust-project-aarch64-unknown-linux-musl.zst" + } + ] + }, + "macos-x86_64": { + "size": 1396577, + "hash": "blake3", + "digest": "fec40ca8ef112b73014aef3e79751e245b71c092f7bef7c54947ad7356878fcc", + "format": "zst", + "path": "rust-project-x86_64-apple-darwin", + "providers": [ + { + "url": "https://github.com/facebook/buck2/releases/download/2025-05-06/rust-project-x86_64-apple-darwin.zst" + } + ] + }, + "windows-x86_64": { + "size": 1204449, + "hash": "blake3", + "digest": "5d5ea2faa7291b54a8389e4f7aab343565c59062c756dbe21e0416bddc610d55", + "format": "zst", + "path": "rust-project-x86_64-pc-windows-msvc.exe", + "providers": [ + { + "url": "https://github.com/facebook/buck2/releases/download/2025-05-06/rust-project-x86_64-pc-windows-msvc.exe.zst" + } + ] + }, + "linux-x86_64": { + "size": 1542697, + "hash": "blake3", + "digest": "3219085df7b768be8c732f0343b3e1a19ccfcc2d84b92ffa02a00b2afcf57587", + "format": "zst", + "path": "rust-project-x86_64-unknown-linux-musl", + "providers": [ + { + "url": "https://github.com/facebook/buck2/releases/download/2025-05-06/rust-project-x86_64-unknown-linux-musl.zst" + } + ] + } + } +} diff --git a/bootstrap/rust-project.exe b/bootstrap/rust-project.exe new file mode 100644 index 0000000000000..cbfa4e3c9256a Binary files /dev/null and b/bootstrap/rust-project.exe differ diff --git a/shim/.gitignore b/shim/.gitignore index ca95b0e4631fb..76029c51fcead 100644 --- a/shim/.gitignore +++ b/shim/.gitignore @@ -8,5 +8,5 @@ # We currently expect end users to run reindeer vendor themselves # so mark these things as to ignore /third-party/rust/.cargo/ -/third-party/rust/BUCK +/third-party/rust/BUCK.v2 /third-party/rust/vendor/ diff --git a/shim/third-party/rust/BUCK b/shim/third-party/rust/BUCK new file mode 100644 index 0000000000000..5b054634fb350 --- /dev/null +++ b/shim/third-party/rust/BUCK @@ -0,0 +1,15 @@ + +fail("""---------------------------------------------------- + +You need to generate BUCK dependencies from Cargo.toml using reindeer! + +Try this: + + ./bootstrap/reindeer --third-party-dir shim/third-party/rust buckify + +See the following links for more information: + + + + +----------------------------------------------------""") diff --git a/shim/third-party/rust/reindeer.toml b/shim/third-party/rust/reindeer.toml index 13ab5215c2196..06c6ea1eebbe0 100644 --- a/shim/third-party/rust/reindeer.toml +++ b/shim/third-party/rust/reindeer.toml @@ -23,7 +23,7 @@ bindeps = true [buck] # Name of the generated file. -file_name = "BUCK" +file_name = "BUCK.v2" # Rules used for various kinds of targets. rust_library = "cargo.rust_library"