Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions .buckconfig
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[cells]
root = .
buckal = buckal
none = none
prelude = prelude
root = .
toolchains = toolchains
none = none
buckal = buckal

[cell_aliases]
config = prelude
Expand All @@ -13,13 +13,17 @@
fbcode_macros = none
buck = none

# Uses a copy of the prelude bundled with the buck2 binary. You can alternatively delete this
# section and vendor a copy of the prelude to the `prelude` directory of your project.
[external_cells]
prelude = bundled

# Added by cargo-buckal. See [external_cell_buckal] for git configuration.
buckal = git

[external_cell_buckal]
commit_hash = 22bd38c79d2348d9a6591b7156c42d615377eaad
git_origin = https://github.com/buck2hub/buckal-bundles
commit_hash = f9c4f306b1aad816fa520fe361f4f03d28cd5b7b

[parser]
target_platform_detector_spec = target:root//...->prelude//platforms:default \
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ buck-out/

src/.DS_Store
.DS_Store
examples/output_packs
examples/output_packs/buck-out
141 changes: 0 additions & 141 deletions BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -67,144 +67,3 @@ rust_library(
"//third-party/rust/crates/zstd-sys/2.0.16+zstd.1.5.7:zstd-sys",
],
)

rust_test(
name = "git_internal-unittest",
srcs = [":git-internal-vendor"],
crate = "git_internal",
crate_root = "vendor/src/lib.rs",
edition = "2024",
features = [
"default",
"diff_mydrs",
],
rustc_flags = ["@$(location :git-internal-manifest[env_flags])"] + select({
"prelude//os/constraints:windows": select({
"prelude//abi/constraints:gnu": [
"@$(location //third-party/rust/crates/windows_x86_64_gnu/0.48.5:windows_x86_64_gnu-build-script-run[rustc_flags])",
"@$(location //third-party/rust/crates/windows_x86_64_gnu/0.53.1:windows_x86_64_gnu-build-script-run[rustc_flags])",
],
"DEFAULT": [
"@$(location //third-party/rust/crates/windows_x86_64_msvc/0.48.5:windows_x86_64_msvc-build-script-run[rustc_flags])",
"@$(location //third-party/rust/crates/windows_x86_64_msvc/0.53.1:windows_x86_64_msvc-build-script-run[rustc_flags])",
],
}),
"DEFAULT": [],
}),
visibility = ["PUBLIC"],
deps = [
"//third-party/rust/crates/ahash/0.8.12:ahash",
"//third-party/rust/crates/async-trait/0.1.89:async-trait",
"//third-party/rust/crates/axum/0.8.8:axum",
"//third-party/rust/crates/bincode/2.0.1:bincode",
"//third-party/rust/crates/bstr/1.12.1:bstr",
"//third-party/rust/crates/byteorder/1.5.0:byteorder",
"//third-party/rust/crates/bytes/1.11.0:bytes",
"//third-party/rust/crates/chrono/0.4.43:chrono",
"//third-party/rust/crates/colored/3.1.1:colored",
"//third-party/rust/crates/crc32fast/1.5.0:crc32fast",
"//third-party/rust/crates/dashmap/6.1.0:dashmap",
"//third-party/rust/crates/diffs/0.5.1:diffs",
"//third-party/rust/crates/encoding_rs/0.8.35:encoding_rs",
"//third-party/rust/crates/flate2/1.1.8:flate2",
"//third-party/rust/crates/futures-util/0.3.31:futures-util",
"//third-party/rust/crates/futures/0.3.31:futures",
"//third-party/rust/crates/hex/0.4.3:hex",
"//third-party/rust/crates/libc/0.2.180:libc",
"//third-party/rust/crates/lru-mem/0.3.0:lru-mem",
"//third-party/rust/crates/memchr/2.7.6:memchr",
"//third-party/rust/crates/natord/1.0.9:natord",
"//third-party/rust/crates/num_cpus/1.17.0:num_cpus",
"//third-party/rust/crates/path-absolutize/3.1.1:path-absolutize",
"//third-party/rust/crates/quickcheck/1.0.3:quickcheck",
"//third-party/rust/crates/rand/0.9.2:rand",
"//third-party/rust/crates/rand_chacha/0.9.0:rand_chacha",
"//third-party/rust/crates/rayon/1.11.0:rayon",
"//third-party/rust/crates/sea-orm/1.1.19:sea-orm",
"//third-party/rust/crates/serde/1.0.228:serde",
"//third-party/rust/crates/sha1/0.10.6:sha1",
"//third-party/rust/crates/sha2/0.10.9:sha2",
"//third-party/rust/crates/similar/2.7.0:similar",
"//third-party/rust/crates/tempfile/3.24.0:tempfile",
"//third-party/rust/crates/thiserror/2.0.18:thiserror",
"//third-party/rust/crates/threadpool/1.8.1:threadpool",
"//third-party/rust/crates/tokio-stream/0.1.18:tokio-stream",
"//third-party/rust/crates/tokio-util/0.7.18:tokio-util",
"//third-party/rust/crates/tokio/1.49.0:tokio",
"//third-party/rust/crates/tracing-subscriber/0.3.22:tracing-subscriber",
"//third-party/rust/crates/tracing/0.1.44:tracing",
"//third-party/rust/crates/uuid/1.19.0:uuid",
"//third-party/rust/crates/zstd-sys/2.0.16+zstd.1.5.7:zstd-sys",
],
)

rust_test(
name = "decode-index-pack",
srcs = [":git-internal-vendor"],
crate = "decode_index_pack",
crate_root = "vendor/tests/decode-index-pack.rs",
edition = "2024",
features = [
"default",
"diff_mydrs",
],
rustc_flags = ["@$(location :git-internal-manifest[env_flags])"] + select({
"prelude//os/constraints:windows": select({
"prelude//abi/constraints:gnu": [
"@$(location //third-party/rust/crates/windows_x86_64_gnu/0.48.5:windows_x86_64_gnu-build-script-run[rustc_flags])",
"@$(location //third-party/rust/crates/windows_x86_64_gnu/0.53.1:windows_x86_64_gnu-build-script-run[rustc_flags])",
],
"DEFAULT": [
"@$(location //third-party/rust/crates/windows_x86_64_msvc/0.48.5:windows_x86_64_msvc-build-script-run[rustc_flags])",
"@$(location //third-party/rust/crates/windows_x86_64_msvc/0.53.1:windows_x86_64_msvc-build-script-run[rustc_flags])",
],
}),
"DEFAULT": [],
}),
visibility = ["PUBLIC"],
deps = [
"//third-party/rust/crates/ahash/0.8.12:ahash",
"//third-party/rust/crates/async-trait/0.1.89:async-trait",
"//third-party/rust/crates/axum/0.8.8:axum",
"//third-party/rust/crates/bincode/2.0.1:bincode",
"//third-party/rust/crates/bstr/1.12.1:bstr",
"//third-party/rust/crates/byteorder/1.5.0:byteorder",
"//third-party/rust/crates/bytes/1.11.0:bytes",
"//third-party/rust/crates/chrono/0.4.43:chrono",
"//third-party/rust/crates/colored/3.1.1:colored",
"//third-party/rust/crates/crc32fast/1.5.0:crc32fast",
"//third-party/rust/crates/dashmap/6.1.0:dashmap",
"//third-party/rust/crates/diffs/0.5.1:diffs",
"//third-party/rust/crates/encoding_rs/0.8.35:encoding_rs",
"//third-party/rust/crates/flate2/1.1.8:flate2",
"//third-party/rust/crates/futures-util/0.3.31:futures-util",
"//third-party/rust/crates/futures/0.3.31:futures",
"//third-party/rust/crates/hex/0.4.3:hex",
"//third-party/rust/crates/libc/0.2.180:libc",
"//third-party/rust/crates/lru-mem/0.3.0:lru-mem",
"//third-party/rust/crates/memchr/2.7.6:memchr",
"//third-party/rust/crates/natord/1.0.9:natord",
"//third-party/rust/crates/num_cpus/1.17.0:num_cpus",
"//third-party/rust/crates/path-absolutize/3.1.1:path-absolutize",
"//third-party/rust/crates/quickcheck/1.0.3:quickcheck",
"//third-party/rust/crates/rand/0.9.2:rand",
"//third-party/rust/crates/rand_chacha/0.9.0:rand_chacha",
"//third-party/rust/crates/rayon/1.11.0:rayon",
"//third-party/rust/crates/sea-orm/1.1.19:sea-orm",
"//third-party/rust/crates/serde/1.0.228:serde",
"//third-party/rust/crates/sha1/0.10.6:sha1",
"//third-party/rust/crates/sha2/0.10.9:sha2",
"//third-party/rust/crates/similar/2.7.0:similar",
"//third-party/rust/crates/tempfile/3.24.0:tempfile",
"//third-party/rust/crates/thiserror/2.0.18:thiserror",
"//third-party/rust/crates/threadpool/1.8.1:threadpool",
"//third-party/rust/crates/tokio-stream/0.1.18:tokio-stream",
"//third-party/rust/crates/tokio-util/0.7.18:tokio-util",
"//third-party/rust/crates/tokio/1.49.0:tokio",
"//third-party/rust/crates/tracing-subscriber/0.3.22:tracing-subscriber",
"//third-party/rust/crates/tracing/0.1.44:tracing",
"//third-party/rust/crates/uuid/1.19.0:uuid",
"//third-party/rust/crates/zstd-sys/2.0.16+zstd.1.5.7:zstd-sys",
":git_internal",
],
)
17 changes: 17 additions & 0 deletions PACKAGE
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# @generated by `cargo buckal`

load("@prelude//cfg/modifier:set_cfg_modifiers.bzl", "set_cfg_modifiers")
load("@prelude//rust:with_workspace.bzl", "with_rust_workspace")
Copy link

Copilot AI Jan 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The import with_rust_workspace is loaded but never used in this file. This import should be removed to keep the code clean and avoid confusion.

Suggested change
load("@prelude//rust:with_workspace.bzl", "with_rust_workspace")

Copilot uses AI. Check for mistakes.
load("@buckal//config:set_cfg_constructor.bzl", "set_cfg_constructor")

ALIASES = {
"debug": "buckal//config/mode:debug",
"release": "buckal//config/mode:release",
}
set_cfg_constructor(aliases = ALIASES)

set_cfg_modifiers(
cfg_modifiers = [
"buckal//config/mode:debug",
],
)
1 change: 0 additions & 1 deletion buckal.toml

This file was deleted.

53 changes: 53 additions & 0 deletions platforms/BUCK
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# @generated by `cargo buckal`
#
# Target platforms expressed using Rust-style triples.
# These are intended for `--target-platforms` and to make `select()`s in
# buckal-generated rules match on OS/CPU/ABI constraints.

load("@prelude//platforms:defs.bzl", "execution_platform")

platform(
name = "aarch64-apple-darwin",
constraint_values = [
"prelude//os/constraints:macos",
"prelude//cpu/constraints:arm64",
],
visibility = ["PUBLIC"],
)

platform(
name = "x86_64-pc-windows-msvc",
constraint_values = [
"prelude//os/constraints:windows",
"prelude//cpu/constraints:x86_64",
"prelude//abi/constraints:msvc",
],
visibility = ["PUBLIC"],
)

platform(
name = "x86_64-unknown-linux-gnu",
constraint_values = [
"prelude//os/constraints:linux",
"prelude//cpu/constraints:x86_64",
"prelude//abi/constraints:gnu",
],
visibility = ["PUBLIC"],
)

config_setting(
name = "cross",
values = {
"cross.skip_test": "true",
},
visibility = ["PUBLIC"],
)

config_setting(
name = "windows-msvc",
constraint_values = [
"prelude//os/constraints:windows",
"prelude//abi/constraints:msvc",
],
visibility = ["PUBLIC"],
)
33 changes: 0 additions & 33 deletions third-party/README.md

This file was deleted.

11 changes: 5 additions & 6 deletions third-party/rust/crates/ahash/0.7.8/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,20 @@ rust_library(
"@$(location :ahash-build-script-run[rustc_flags])",
"@$(location :ahash-manifest[env_flags])",
],
deps = [] + select({
"DEFAULT": [],
"config//os:linux": [
os_deps = {
"linux": [
"//third-party/rust/crates/getrandom/0.2.16:getrandom",
"//third-party/rust/crates/once_cell/1.21.3:once_cell",
],
"config//os:macos": [
"macos": [
"//third-party/rust/crates/getrandom/0.2.16:getrandom",
"//third-party/rust/crates/once_cell/1.21.3:once_cell",
],
"config//os:windows": [
"windows": [
"//third-party/rust/crates/getrandom/0.2.16:getrandom",
"//third-party/rust/crates/once_cell/1.21.3:once_cell",
],
}),
},
visibility = ["PUBLIC"],
)

Expand Down
14 changes: 7 additions & 7 deletions third-party/rust/crates/ahash/0.8.12/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@ rust_library(
"@$(location :ahash-build-script-run[rustc_flags])",
"@$(location :ahash-manifest[env_flags])",
],
os_deps = {
"linux": ["//third-party/rust/crates/once_cell/1.21.3:once_cell"],
"macos": ["//third-party/rust/crates/once_cell/1.21.3:once_cell"],
"windows": ["//third-party/rust/crates/once_cell/1.21.3:once_cell"],
},
visibility = ["PUBLIC"],
deps = [
"//third-party/rust/crates/cfg-if/1.0.4:cfg-if",
"//third-party/rust/crates/getrandom/0.3.4:getrandom",
"//third-party/rust/crates/zerocopy/0.8.31:zerocopy",
] + select({
"DEFAULT": [],
"config//os:linux": ["//third-party/rust/crates/once_cell/1.21.3:once_cell"],
"config//os:macos": ["//third-party/rust/crates/once_cell/1.21.3:once_cell"],
"config//os:windows": ["//third-party/rust/crates/once_cell/1.21.3:once_cell"],
}),
visibility = ["PUBLIC"],
],
)

rust_binary(
Expand Down
10 changes: 5 additions & 5 deletions third-party/rust/crates/cc/1.2.49/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ rust_library(
edition = "2018",
features = ["parallel"],
rustc_flags = ["@$(location :cc-manifest[env_flags])"],
os_deps = {
"linux": ["//third-party/rust/crates/libc/0.2.180:libc"],
"macos": ["//third-party/rust/crates/libc/0.2.180:libc"],
},
visibility = ["PUBLIC"],
deps = [
"//third-party/rust/crates/find-msvc-tools/0.1.5:find-msvc-tools",
"//third-party/rust/crates/jobserver/0.1.34:jobserver",
"//third-party/rust/crates/shlex/1.3.0:shlex",
] + select({
"DEFAULT": [],
"config//os:linux": ["//third-party/rust/crates/libc/0.2.180:libc"],
"config//os:macos": ["//third-party/rust/crates/libc/0.2.180:libc"],
}),
],
)
14 changes: 7 additions & 7 deletions third-party/rust/crates/chrono/0.4.43/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ rust_library(
"windows-link",
],
rustc_flags = ["@$(location :chrono-manifest[env_flags])"],
os_deps = {
"linux": ["//third-party/rust/crates/iana-time-zone/0.1.64:iana-time-zone"],
"macos": ["//third-party/rust/crates/iana-time-zone/0.1.64:iana-time-zone"],
"windows": ["//third-party/rust/crates/windows-link/0.2.1:windows-link"],
},
visibility = ["PUBLIC"],
deps = [
"//third-party/rust/crates/num-traits/0.2.19:num-traits",
"//third-party/rust/crates/serde/1.0.228:serde",
] + select({
"DEFAULT": [],
"config//os:linux": ["//third-party/rust/crates/iana-time-zone/0.1.64:iana-time-zone"],
"config//os:macos": ["//third-party/rust/crates/iana-time-zone/0.1.64:iana-time-zone"],
"config//os:windows": ["//third-party/rust/crates/windows-link/0.2.1:windows-link"],
}),
visibility = ["PUBLIC"],
],
)
Loading
Loading