Skip to content

Commit 019c1b6

Browse files
authored
Added granular interfaces for core rules (#3402)
This matches what we see in other rules.
1 parent 8043630 commit 019c1b6

File tree

7 files changed

+56
-0
lines changed

7 files changed

+56
-0
lines changed

rust/rust_binary.bzl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
"""rust_binary"""
2+
3+
load(
4+
"//rust/private:rust.bzl",
5+
_rust_binary = "rust_binary",
6+
)
7+
8+
rust_binary = _rust_binary

rust/rust_library.bzl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
"""rust_library"""
2+
3+
load(
4+
"//rust/private:rust.bzl",
5+
_rust_library = "rust_library",
6+
)
7+
8+
rust_library = _rust_library

rust/rust_library_group.bzl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
"""rust_library_group"""
2+
3+
load(
4+
"//rust/private:rust.bzl",
5+
_rust_library_group = "rust_library_group",
6+
)
7+
8+
rust_library_group = _rust_library_group

rust/rust_proc_macro.bzl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
"""rust_proc_macro"""
2+
3+
load(
4+
"//rust/private:rust.bzl",
5+
_rust_proc_macro = "rust_proc_macro",
6+
)
7+
8+
rust_proc_macro = _rust_proc_macro

rust/rust_shared_library.bzl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
"""rust_shared_library"""
2+
3+
load(
4+
"//rust/private:rust.bzl",
5+
_rust_shared_library = "rust_shared_library",
6+
)
7+
8+
rust_shared_library = _rust_shared_library

rust/rust_static_library.bzl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
"""rust_static_library"""
2+
3+
load(
4+
"//rust/private:rust.bzl",
5+
_rust_static_library = "rust_static_library",
6+
)
7+
8+
rust_static_library = _rust_static_library

rust/rust_test.bzl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
"""rust_test"""
2+
3+
load(
4+
"//rust/private:rust.bzl",
5+
_rust_test = "rust_test",
6+
)
7+
8+
rust_test = _rust_test

0 commit comments

Comments
 (0)