Skip to content

Commit a67acd9

Browse files
David Tolnayfacebook-github-bot
authored andcommitted
Add rust macros in new location
Summary: D80827538 changed Rust macro imports from `fbcode_macros//build_defs:rust_{library,binary,unittest}.bzl` to `fbsource//tools/build_defs:rust_{library,binary,unittest}.bzl` and the old location is being imminently deleted. Facebook open-source projects map both `fbcode_macros` and `fbsource` to this fbcode/github/standard/shim directory. So we need some new files under shim/tools/build_defs/rust_{}.bzl that mirror the existing shim/build_defs/rust_{}.bzl. https://www.internalfb.com/code/fbsource/[6e8ef076aafbe4d8b2726a250ae137f219b0481e]/fbcode/github/standard/shim/.buckconfig.d/common.buckconfig?lines=5%2C11-12 https://www.internalfb.com/code/fbsource/[6e8ef076aafbe4d8b2726a250ae137f219b0481e]/fbcode/buck2/oss/.buckconfig?lines=1%2C3 Reviewed By: cjlongoria Differential Revision: D81150005 Privacy Context Container: L1292898 fbshipit-source-id: be65d496c9d475eabb9e8f8826859e33883b351e
1 parent 01c20ed commit a67acd9

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Copyright (c) Meta Platforms, Inc. and affiliates.
2+
#
3+
# This source code is dual-licensed under either the MIT license found in the
4+
# LICENSE-MIT file in the root directory of this source tree or the Apache
5+
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
6+
# of this source tree. You may select, at your option, one of the
7+
# above-listed licenses.
8+
9+
load("@shim//:shims.bzl", _rust_binary = "rust_binary")
10+
11+
rust_binary = _rust_binary
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Copyright (c) Meta Platforms, Inc. and affiliates.
2+
#
3+
# This source code is dual-licensed under either the MIT license found in the
4+
# LICENSE-MIT file in the root directory of this source tree or the Apache
5+
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
6+
# of this source tree. You may select, at your option, one of the
7+
# above-listed licenses.
8+
9+
load("@shim//:shims.bzl", _rust_library = "rust_library")
10+
11+
rust_library = _rust_library
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Copyright (c) Meta Platforms, Inc. and affiliates.
2+
#
3+
# This source code is dual-licensed under either the MIT license found in the
4+
# LICENSE-MIT file in the root directory of this source tree or the Apache
5+
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
6+
# of this source tree. You may select, at your option, one of the
7+
# above-listed licenses.
8+
9+
load("@shim//:shims.bzl", _rust_unittest = "rust_unittest")
10+
11+
rust_unittest = _rust_unittest

0 commit comments

Comments
 (0)