Skip to content

Commit 6ced9af

Browse files
quark-zjumeta-codesync[bot]
authored andcommitted
buck: use sl_rust_library and sl_rust_binary
Summary: See D111799588 for context. Migrate to `sl_`-prefixed `rust_library` and `rust_binary` so we can rewrite autocargo rules in a single place. Reviewed By: genevievehelsel Differential Revision: D111800065 fbshipit-source-id: 9a08bbdc1938b4954186749298b1028a19b2f7e9
1 parent 8ff4199 commit 6ced9af

229 files changed

Lines changed: 479 additions & 492 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

eden/scm/exec/eden_apfs_mount_helper/BUCK

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
load("@fbsource//tools/build_defs:rust_binary.bzl", "rust_binary")
2-
load("@fbsource//tools/build_defs:rust_library.bzl", "rust_library")
1+
load("//eden/scm:targets.bzl", "sl_rust_binary", "sl_rust_library")
32

43
oncall("sapling")
54

6-
rust_binary(
5+
sl_rust_binary(
76
name = "eden_apfs_mount_helper",
87
srcs = glob([
98
"src/*.rs",
@@ -30,7 +29,7 @@ rust_binary(
3029
}),
3130
)
3231

33-
rust_library(
32+
sl_rust_library(
3433
name = "eden_apfs",
3534
srcs = glob(["src/eden_apfs/*.rs"]),
3635
autocargo = {

eden/scm/exec/fsprobe/BUCK

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
load("@fbsource//tools/build_defs:rust_binary.bzl", "rust_binary")
1+
load("//eden/scm:targets.bzl", "sl_rust_binary")
22

33
oncall("sapling")
44

5-
rust_binary(
5+
sl_rust_binary(
66
name = "fsprobe",
77
srcs = glob(["src/**/*.rs"]),
88
deps = [

eden/scm/exec/scm_daemon/BUCK

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
load("@fbcode_macros//build_defs:rust_universal_binary.bzl", "rust_universal_binary")
2-
load("@fbsource//tools/build_defs:rust_binary.bzl", "rust_binary")
2+
load("//eden/scm:targets.bzl", "sl_rust_binary")
33

44
oncall("sapling")
55

6-
rust_binary(
6+
sl_rust_binary(
77
name = "scm_daemon",
88
srcs = glob(["src/**/*.rs"]),
99
autocargo = {

eden/scm/exec/scratch/BUCK

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
load("@fbsource//tools/build_defs:rust_binary.bzl", "rust_binary")
2-
load("@fbsource//tools/build_defs:rust_library.bzl", "rust_library")
1+
load("//eden/scm:targets.bzl", "sl_rust_binary", "sl_rust_library")
32

43
oncall("sapling")
54

6-
rust_library(
5+
sl_rust_library(
76
name = "mkscratch",
87
srcs = glob(
98
["src/**/*.rs"],
@@ -26,7 +25,7 @@ rust_library(
2625
],
2726
)
2827

29-
rust_binary(
28+
sl_rust_binary(
3029
name = "scratch",
3130
srcs = ["src/main.rs"],
3231
autocargo = {

eden/scm/lib/agentdetect/BUCK

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
load("@fbsource//tools/build_defs:rust_library.bzl", "rust_library")
1+
load("//eden/scm:targets.bzl", "sl_rust_library")
22

33
oncall("sapling")
44

5-
rust_library(
5+
sl_rust_library(
66
name = "agentdetect",
77
srcs = glob(["src/**/*.rs"]),
88
autocargo = {

eden/scm/lib/async-runtime/BUCK

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
load("@fbsource//tools/build_defs:rust_library.bzl", "rust_library")
1+
load("//eden/scm:targets.bzl", "sl_rust_library")
22

33
oncall("sapling")
44

5-
rust_library(
5+
sl_rust_library(
66
name = "async-runtime",
77
srcs = glob(["src/**/*.rs"]),
88
autocargo = {

eden/scm/lib/atomicfile/BUCK

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
load("@fbsource//tools/build_defs:rust_library.bzl", "rust_library")
1+
load("//eden/scm:targets.bzl", "sl_rust_library")
22

33
oncall("sapling")
44

5-
rust_library(
5+
sl_rust_library(
66
name = "atomicfile",
77
srcs = glob(["src/**/*.rs"]),
88
autocargo = {

eden/scm/lib/auth/BUCK

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
load("@fbsource//tools/build_defs:rust_library.bzl", "rust_library")
1+
load("//eden/scm:targets.bzl", "sl_rust_library")
22

33
oncall("sapling")
44

5-
rust_library(
5+
sl_rust_library(
66
name = "auth",
77
srcs = glob(["src/**/*.rs"]),
88
autocargo = {

eden/scm/lib/backingstore/BUCK

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library")
22
load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest")
3-
load("@fbsource//tools/build_defs:rust_library.bzl", "rust_library")
43
load("@fbsource//tools/build_defs/testinfra:network_access_utils.bzl", "network_access_utils")
4+
load("//eden/scm:targets.bzl", "sl_rust_library")
55

66
oncall("sapling")
77

@@ -38,7 +38,7 @@ cpp_library(
3838
],
3939
)
4040

41-
rust_library(
41+
sl_rust_library(
4242
name = "backingstore",
4343
srcs = glob(["src/**/*.rs"]),
4444
autocargo = {

eden/scm/lib/backingstore/benches/BUCK

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
load("@fbcode_macros//build_defs/lib:rust_oss.bzl", "rust_oss")
2-
load("@fbsource//tools/build_defs:rust_binary.bzl", "rust_binary")
2+
load("//eden/scm:targets.bzl", "sl_rust_binary")
33

44
oncall("sapling")
55

6-
rust_binary(
6+
sl_rust_binary(
77
name = "backingstore-benches",
88
srcs = glob([
99
"src/**/*.rs",

0 commit comments

Comments
 (0)