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", |
| 24 | _rust_clippy = "rust_clippy", |
| 25 | _rust_clippy_aspect = "rust_clippy_aspect", |
| 26 | ) |
| 27 | load("//rust/private:common.bzl", _rust_common = "rust_common") |
| 28 | load( |
| 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 | ) |
| 38 | load( |
| 39 | "//rust/private:rust_analyzer.bzl", |
| 40 | _rust_analyzer = "rust_analyzer", |
| 41 | _rust_analyzer_aspect = "rust_analyzer_aspect", |
| 42 | ) |
| 43 | load( |
| 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 | ) |
| 49 | load( |
| 50 | "//rust/private:rustdoc.bzl", |
| 51 | _rust_doc = "rust_doc", |
| 52 | ) |
| 53 | load( |
| 54 | "//rust/private:rustdoc_test.bzl", |
| 55 | _rust_doc_test = "rust_doc_test", |
| 56 | ) |
| 57 | load( |
| 58 | "//rust/private:rustfmt.bzl", |
| 59 | _rustfmt_aspect = "rustfmt_aspect", |
| 60 | _rustfmt_test = "rustfmt_test", |
| 61 | ) |
| 62 | |
| 63 | rust_library = _rust_library |
| 64 | # See @rules_rust//rust/private:rust.bzl for a complete description. |
| 65 | |
| 66 | rust_static_library = _rust_static_library |
| 67 | # See @rules_rust//rust/private:rust.bzl for a complete description. |
| 68 | |
| 69 | rust_shared_library = _rust_shared_library |
| 70 | # See @rules_rust//rust/private:rust.bzl for a complete description. |
| 71 | |
| 72 | rust_proc_macro = _rust_proc_macro |
| 73 | # See @rules_rust//rust/private:rust.bzl for a complete description. |
| 74 | |
| 75 | rust_binary = _rust_binary |
| 76 | # See @rules_rust//rust/private:rust.bzl for a complete description. |
| 77 | |
| 78 | rust_test = _rust_test |
| 79 | # See @rules_rust//rust/private:rust.bzl for a complete description. |
| 80 | |
| 81 | rust_test_suite = _rust_test_suite |
| 82 | # See @rules_rust//rust/private:rust.bzl for a complete description. |
| 83 | |
| 84 | rust_doc = _rust_doc |
| 85 | # See @rules_rust//rust/private:rustdoc.bzl for a complete description. |
| 86 | |
| 87 | rust_doc_test = _rust_doc_test |
| 88 | # See @rules_rust//rust/private:rustdoc_test.bzl for a complete description. |
| 89 | |
| 90 | rust_clippy_aspect = _rust_clippy_aspect |
| 91 | # See @rules_rust//rust/private:clippy.bzl for a complete description. |
| 92 | |
| 93 | rust_clippy = _rust_clippy |
| 94 | # See @rules_rust//rust/private:clippy.bzl for a complete description. |
| 95 | |
| 96 | capture_clippy_output = _capture_clippy_output |
| 97 | # See @rules_rust//rust/private:clippy.bzl for a complete description. |
| 98 | |
| 99 | error_format = _error_format |
| 100 | # See @rules_rust//rust/private:rustc.bzl for a complete description. |
| 101 | |
| 102 | extra_rustc_flags = _extra_rustc_flags |
| 103 | # See @rules_rust//rust/private:rustc.bzl for a complete description. |
| 104 | |
| 105 | extra_exec_rustc_flags = _extra_exec_rustc_flags |
| 106 | # See @rules_rust//rust/private:rustc.bzl for a complete description. |
| 107 | |
| 108 | rust_common = _rust_common |
| 109 | # See @rules_rust//rust/private:common.bzl for a complete description. |
| 110 | |
| 111 | rust_analyzer_aspect = _rust_analyzer_aspect |
| 112 | # See @rules_rust//rust/private:rust_analyzer.bzl for a complete description. |
| 113 | |
| 114 | rust_analyzer = _rust_analyzer |
| 115 | # See @rules_rust//rust/private:rust_analyzer.bzl for a complete description. |
| 116 | |
| 117 | rustfmt_aspect = _rustfmt_aspect |
| 118 | # See @rules_rust//rust/private:rustfmt.bzl for a complete description. |
| 119 | |
| 120 | rustfmt_test = _rustfmt_test |
| 121 | # See @rules_rust//rust/private:rustfmt.bzl for a complete description. |
| 122 | |
| 123 | rust_stdlib_filegroup = _rust_stdlib_filegroup |
| 124 | # See @rules_rust//rust:toolchain.bzl for a complete description. |