blob: dd1b4458cece14b40510f7d4fb08f2d0eaeb4b41 [file] [log] [blame]
Brian Silvermancc09f182022-03-09 15:40:20 -08001# Copyright 2021 The Bazel Authors. All rights reserved.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15"""Public entry point to all Rust rules and supported APIs."""
16
17load(
18 "//rust:toolchain.bzl",
19 _rust_stdlib_filegroup = "rust_stdlib_filegroup",
20)
21load(
22 "//rust/private:clippy.bzl",
23 _capture_clippy_output = "capture_clippy_output",
24 _rust_clippy = "rust_clippy",
25 _rust_clippy_aspect = "rust_clippy_aspect",
26)
27load("//rust/private:common.bzl", _rust_common = "rust_common")
28load(
29 "//rust/private:rust.bzl",
30 _rust_binary = "rust_binary",
31 _rust_library = "rust_library",
32 _rust_proc_macro = "rust_proc_macro",
33 _rust_shared_library = "rust_shared_library",
34 _rust_static_library = "rust_static_library",
35 _rust_test = "rust_test",
36 _rust_test_suite = "rust_test_suite",
37)
38load(
39 "//rust/private:rust_analyzer.bzl",
40 _rust_analyzer = "rust_analyzer",
41 _rust_analyzer_aspect = "rust_analyzer_aspect",
42)
43load(
44 "//rust/private:rustc.bzl",
45 _error_format = "error_format",
46 _extra_exec_rustc_flags = "extra_exec_rustc_flags",
47 _extra_rustc_flags = "extra_rustc_flags",
48)
49load(
50 "//rust/private:rustdoc.bzl",
51 _rust_doc = "rust_doc",
52)
53load(
54 "//rust/private:rustdoc_test.bzl",
55 _rust_doc_test = "rust_doc_test",
56)
57load(
58 "//rust/private:rustfmt.bzl",
59 _rustfmt_aspect = "rustfmt_aspect",
60 _rustfmt_test = "rustfmt_test",
61)
62
63rust_library = _rust_library
64# See @rules_rust//rust/private:rust.bzl for a complete description.
65
66rust_static_library = _rust_static_library
67# See @rules_rust//rust/private:rust.bzl for a complete description.
68
69rust_shared_library = _rust_shared_library
70# See @rules_rust//rust/private:rust.bzl for a complete description.
71
72rust_proc_macro = _rust_proc_macro
73# See @rules_rust//rust/private:rust.bzl for a complete description.
74
75rust_binary = _rust_binary
76# See @rules_rust//rust/private:rust.bzl for a complete description.
77
78rust_test = _rust_test
79# See @rules_rust//rust/private:rust.bzl for a complete description.
80
81rust_test_suite = _rust_test_suite
82# See @rules_rust//rust/private:rust.bzl for a complete description.
83
84rust_doc = _rust_doc
85# See @rules_rust//rust/private:rustdoc.bzl for a complete description.
86
87rust_doc_test = _rust_doc_test
88# See @rules_rust//rust/private:rustdoc_test.bzl for a complete description.
89
90rust_clippy_aspect = _rust_clippy_aspect
91# See @rules_rust//rust/private:clippy.bzl for a complete description.
92
93rust_clippy = _rust_clippy
94# See @rules_rust//rust/private:clippy.bzl for a complete description.
95
96capture_clippy_output = _capture_clippy_output
97# See @rules_rust//rust/private:clippy.bzl for a complete description.
98
99error_format = _error_format
100# See @rules_rust//rust/private:rustc.bzl for a complete description.
101
102extra_rustc_flags = _extra_rustc_flags
103# See @rules_rust//rust/private:rustc.bzl for a complete description.
104
105extra_exec_rustc_flags = _extra_exec_rustc_flags
106# See @rules_rust//rust/private:rustc.bzl for a complete description.
107
108rust_common = _rust_common
109# See @rules_rust//rust/private:common.bzl for a complete description.
110
111rust_analyzer_aspect = _rust_analyzer_aspect
112# See @rules_rust//rust/private:rust_analyzer.bzl for a complete description.
113
114rust_analyzer = _rust_analyzer
115# See @rules_rust//rust/private:rust_analyzer.bzl for a complete description.
116
117rustfmt_aspect = _rustfmt_aspect
118# See @rules_rust//rust/private:rustfmt.bzl for a complete description.
119
120rustfmt_test = _rustfmt_test
121# See @rules_rust//rust/private:rustfmt.bzl for a complete description.
122
123rust_stdlib_filegroup = _rust_stdlib_filegroup
124# See @rules_rust//rust:toolchain.bzl for a complete description.