From 5ab5facd0bafc329c7b6a79b2c89c6ee9fc992ec Mon Sep 17 00:00:00 2001 From: Jon Janzen Date: Wed, 27 Nov 2024 15:51:52 -0800 Subject: [PATCH] Rewrite TARGETS files to BUCK files for facebook/sapling Summary: This diff migrates TARGETS file to BUCK files that are synced for an open source project. Differential Revision: D66561332 --- shed/hostcaps/BUCK | 43 ------------------------------------------- 1 file changed, 43 deletions(-) delete mode 100644 shed/hostcaps/BUCK diff --git a/shed/hostcaps/BUCK b/shed/hostcaps/BUCK deleted file mode 100644 index daf77fe8e..000000000 --- a/shed/hostcaps/BUCK +++ /dev/null @@ -1,43 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("autocargo") - -rust_library( - name = "hostcaps", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "lints": { - "rust": { - "unexpected_cfgs": { - "check-cfg": ["cfg(fbcode_build)"], - "level": "warn", - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:derive_more", - "fbsource//third-party/rust:once_cell", - "//common/rust/fbwhoami:fbwhoami", - ], -) - -cpp_library( - name = "hostcaps_ffi", - headers = ["hostcaps.h"], - exported_deps = [ - ":hostcaps", - ], -) - -rust_binary( - name = "test-hostcaps", - srcs = ["src/bin/test.rs"], - crate_root = "src/bin/test.rs", - deps = [":hostcaps"], -)