Brian Silverman | cc09f18 | 2022-03-09 15:40:20 -0800 | [diff] [blame] | 1 | # 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 | |
| 17 | load( |
| 18 | "//rust:toolchain.bzl", |
| 19 | _rust_stdlib_filegroup = "rust_stdlib_filegroup", |
| 20 | ) |
| 21 | load( |
| 22 | "//rust/private:clippy.bzl", |
| 23 | _capture_clippy_output = "capture_clippy_output", |
Brian Silverman | 5f6f276 | 2022-08-13 19:30:05 -0700 | [diff] [blame] | 24 | _clippy_flags = "clippy_flags", |
Brian Silverman | cc09f18 | 2022-03-09 15:40:20 -0800 | [diff] [blame] | 25 | _rust_clippy = "rust_clippy", |
| 26 | _rust_clippy_aspect = "rust_clippy_aspect", |
| 27 | ) |
| 28 | load("//rust/private:common.bzl", _rust_common = "rust_common") |
| 29 | load( |
| 30 | "//rust/private:rust.bzl", |
| 31 | _rust_binary = "rust_binary", |
| 32 | _rust_library = "rust_library", |
Adam Snaider | 1c095c9 | 2023-07-08 02:09:58 -0400 | [diff] [blame] | 33 | _rust_library_group = "rust_library_group", |
Brian Silverman | cc09f18 | 2022-03-09 15:40:20 -0800 | [diff] [blame] | 34 | _rust_proc_macro = "rust_proc_macro", |
| 35 | _rust_shared_library = "rust_shared_library", |
| 36 | _rust_static_library = "rust_static_library", |
| 37 | _rust_test = "rust_test", |
| 38 | _rust_test_suite = "rust_test_suite", |
| 39 | ) |
| 40 | load( |
| 41 | "//rust/private:rust_analyzer.bzl", |
Brian Silverman | cc09f18 | 2022-03-09 15:40:20 -0800 | [diff] [blame] | 42 | _rust_analyzer_aspect = "rust_analyzer_aspect", |
| 43 | ) |
| 44 | load( |
| 45 | "//rust/private:rustc.bzl", |
| 46 | _error_format = "error_format", |
Brian Silverman | 5f6f276 | 2022-08-13 19:30:05 -0700 | [diff] [blame] | 47 | _extra_exec_rustc_flag = "extra_exec_rustc_flag", |
Brian Silverman | cc09f18 | 2022-03-09 15:40:20 -0800 | [diff] [blame] | 48 | _extra_exec_rustc_flags = "extra_exec_rustc_flags", |
Brian Silverman | 5f6f276 | 2022-08-13 19:30:05 -0700 | [diff] [blame] | 49 | _extra_rustc_flag = "extra_rustc_flag", |
Brian Silverman | cc09f18 | 2022-03-09 15:40:20 -0800 | [diff] [blame] | 50 | _extra_rustc_flags = "extra_rustc_flags", |
Brian Silverman | 5f6f276 | 2022-08-13 19:30:05 -0700 | [diff] [blame] | 51 | _is_proc_macro_dep = "is_proc_macro_dep", |
| 52 | _is_proc_macro_dep_enabled = "is_proc_macro_dep_enabled", |
Adam Snaider | 1c095c9 | 2023-07-08 02:09:58 -0400 | [diff] [blame] | 53 | _no_std = "no_std", |
| 54 | _per_crate_rustc_flag = "per_crate_rustc_flag", |
Brian Silverman | cc09f18 | 2022-03-09 15:40:20 -0800 | [diff] [blame] | 55 | ) |
| 56 | load( |
| 57 | "//rust/private:rustdoc.bzl", |
| 58 | _rust_doc = "rust_doc", |
| 59 | ) |
| 60 | load( |
| 61 | "//rust/private:rustdoc_test.bzl", |
| 62 | _rust_doc_test = "rust_doc_test", |
| 63 | ) |
| 64 | load( |
| 65 | "//rust/private:rustfmt.bzl", |
| 66 | _rustfmt_aspect = "rustfmt_aspect", |
| 67 | _rustfmt_test = "rustfmt_test", |
| 68 | ) |
| 69 | |
| 70 | rust_library = _rust_library |
| 71 | # See @rules_rust//rust/private:rust.bzl for a complete description. |
| 72 | |
| 73 | rust_static_library = _rust_static_library |
| 74 | # See @rules_rust//rust/private:rust.bzl for a complete description. |
| 75 | |
| 76 | rust_shared_library = _rust_shared_library |
| 77 | # See @rules_rust//rust/private:rust.bzl for a complete description. |
| 78 | |
| 79 | rust_proc_macro = _rust_proc_macro |
| 80 | # See @rules_rust//rust/private:rust.bzl for a complete description. |
| 81 | |
| 82 | rust_binary = _rust_binary |
| 83 | # See @rules_rust//rust/private:rust.bzl for a complete description. |
| 84 | |
Adam Snaider | 1c095c9 | 2023-07-08 02:09:58 -0400 | [diff] [blame] | 85 | rust_library_group = _rust_library_group |
| 86 | # See @rules_rust//rust/private:rust.bzl for a complete description. |
| 87 | |
Brian Silverman | cc09f18 | 2022-03-09 15:40:20 -0800 | [diff] [blame] | 88 | rust_test = _rust_test |
| 89 | # See @rules_rust//rust/private:rust.bzl for a complete description. |
| 90 | |
| 91 | rust_test_suite = _rust_test_suite |
| 92 | # See @rules_rust//rust/private:rust.bzl for a complete description. |
| 93 | |
| 94 | rust_doc = _rust_doc |
| 95 | # See @rules_rust//rust/private:rustdoc.bzl for a complete description. |
| 96 | |
| 97 | rust_doc_test = _rust_doc_test |
| 98 | # See @rules_rust//rust/private:rustdoc_test.bzl for a complete description. |
| 99 | |
Brian Silverman | 5f6f276 | 2022-08-13 19:30:05 -0700 | [diff] [blame] | 100 | clippy_flags = _clippy_flags |
| 101 | # See @rules_rust//rust/private:clippy.bzl for a complete description. |
| 102 | |
Brian Silverman | cc09f18 | 2022-03-09 15:40:20 -0800 | [diff] [blame] | 103 | rust_clippy_aspect = _rust_clippy_aspect |
| 104 | # See @rules_rust//rust/private:clippy.bzl for a complete description. |
| 105 | |
| 106 | rust_clippy = _rust_clippy |
| 107 | # See @rules_rust//rust/private:clippy.bzl for a complete description. |
| 108 | |
| 109 | capture_clippy_output = _capture_clippy_output |
| 110 | # See @rules_rust//rust/private:clippy.bzl for a complete description. |
| 111 | |
| 112 | error_format = _error_format |
| 113 | # See @rules_rust//rust/private:rustc.bzl for a complete description. |
| 114 | |
Brian Silverman | 5f6f276 | 2022-08-13 19:30:05 -0700 | [diff] [blame] | 115 | extra_rustc_flag = _extra_rustc_flag |
| 116 | # See @rules_rust//rust/private:rustc.bzl for a complete description. |
| 117 | |
Brian Silverman | cc09f18 | 2022-03-09 15:40:20 -0800 | [diff] [blame] | 118 | extra_rustc_flags = _extra_rustc_flags |
| 119 | # See @rules_rust//rust/private:rustc.bzl for a complete description. |
| 120 | |
Brian Silverman | 5f6f276 | 2022-08-13 19:30:05 -0700 | [diff] [blame] | 121 | extra_exec_rustc_flag = _extra_exec_rustc_flag |
| 122 | # See @rules_rust//rust/private:rustc.bzl for a complete description. |
| 123 | |
Brian Silverman | cc09f18 | 2022-03-09 15:40:20 -0800 | [diff] [blame] | 124 | extra_exec_rustc_flags = _extra_exec_rustc_flags |
| 125 | # See @rules_rust//rust/private:rustc.bzl for a complete description. |
| 126 | |
Brian Silverman | 5f6f276 | 2022-08-13 19:30:05 -0700 | [diff] [blame] | 127 | is_proc_macro_dep = _is_proc_macro_dep |
| 128 | # See @rules_rust//rust/private:rustc.bzl for a complete description. |
| 129 | |
| 130 | is_proc_macro_dep_enabled = _is_proc_macro_dep_enabled |
| 131 | # See @rules_rust//rust/private:rustc.bzl for a complete description. |
| 132 | |
Adam Snaider | 1c095c9 | 2023-07-08 02:09:58 -0400 | [diff] [blame] | 133 | per_crate_rustc_flag = _per_crate_rustc_flag |
| 134 | # See @rules_rust//rust/private:rustc.bzl for a complete description. |
| 135 | |
Brian Silverman | cc09f18 | 2022-03-09 15:40:20 -0800 | [diff] [blame] | 136 | rust_common = _rust_common |
| 137 | # See @rules_rust//rust/private:common.bzl for a complete description. |
| 138 | |
| 139 | rust_analyzer_aspect = _rust_analyzer_aspect |
| 140 | # See @rules_rust//rust/private:rust_analyzer.bzl for a complete description. |
| 141 | |
Brian Silverman | cc09f18 | 2022-03-09 15:40:20 -0800 | [diff] [blame] | 142 | rustfmt_aspect = _rustfmt_aspect |
| 143 | # See @rules_rust//rust/private:rustfmt.bzl for a complete description. |
| 144 | |
| 145 | rustfmt_test = _rustfmt_test |
| 146 | # See @rules_rust//rust/private:rustfmt.bzl for a complete description. |
| 147 | |
| 148 | rust_stdlib_filegroup = _rust_stdlib_filegroup |
| 149 | # See @rules_rust//rust:toolchain.bzl for a complete description. |
Adam Snaider | 1c095c9 | 2023-07-08 02:09:58 -0400 | [diff] [blame] | 150 | |
| 151 | no_std = _no_std |