-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gh shims: Set up shim for
rust_linkable_symbol
Summary: So that we can use it in first party OSS projects Reviewed By: dtolnay Differential Revision: D62731699 Privacy Context Container: L1123788 fbshipit-source-id: 892c43d69a34dd02cf2295ef665b41e45846982b
- Loading branch information
1 parent
8b6a304
commit 982e181
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Copyright (c) Meta Platforms, Inc. and affiliates. | ||
# | ||
# This source code is licensed under both the MIT license found in the | ||
# LICENSE-MIT file in the root directory of this source tree and the Apache | ||
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory | ||
# of this source tree. | ||
|
||
load("@prelude//rust:linkable_symbol.bzl", prelude_rust_linkable_symbol = "rust_linkable_symbol") | ||
load("@shim//:shims.bzl", _rust_library = "rust_library") | ||
|
||
def rust_linkable_symbol( | ||
visibility = ["PUBLIC"], | ||
**kwargs): | ||
prelude_rust_linkable_symbol( | ||
visibility = visibility, | ||
rust_library_macro = _rust_library, | ||
**kwargs | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters