1*d4726bddSHONG Yifan# Copyright 2021 The Bazel Authors. All rights reserved. 2*d4726bddSHONG Yifan# 3*d4726bddSHONG Yifan# Licensed under the Apache License, Version 2.0 (the "License"); 4*d4726bddSHONG Yifan# you may not use this file except in compliance with the License. 5*d4726bddSHONG Yifan# You may obtain a copy of the License at 6*d4726bddSHONG Yifan# 7*d4726bddSHONG Yifan# http://www.apache.org/licenses/LICENSE-2.0 8*d4726bddSHONG Yifan# 9*d4726bddSHONG Yifan# Unless required by applicable law or agreed to in writing, software 10*d4726bddSHONG Yifan# distributed under the License is distributed on an "AS IS" BASIS, 11*d4726bddSHONG Yifan# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12*d4726bddSHONG Yifan# See the License for the specific language governing permissions and 13*d4726bddSHONG Yifan# limitations under the License. 14*d4726bddSHONG Yifan 15*d4726bddSHONG Yifan"""Public entry point to all Rust rules and supported APIs.""" 16*d4726bddSHONG Yifan 17*d4726bddSHONG Yifanload( 18*d4726bddSHONG Yifan "//rust:toolchain.bzl", 19*d4726bddSHONG Yifan _rust_stdlib_filegroup = "rust_stdlib_filegroup", 20*d4726bddSHONG Yifan) 21*d4726bddSHONG Yifanload( 22*d4726bddSHONG Yifan "//rust/private:clippy.bzl", 23*d4726bddSHONG Yifan _capture_clippy_output = "capture_clippy_output", 24*d4726bddSHONG Yifan _clippy_flag = "clippy_flag", 25*d4726bddSHONG Yifan _clippy_flags = "clippy_flags", 26*d4726bddSHONG Yifan _rust_clippy = "rust_clippy", 27*d4726bddSHONG Yifan _rust_clippy_aspect = "rust_clippy_aspect", 28*d4726bddSHONG Yifan) 29*d4726bddSHONG Yifanload("//rust/private:common.bzl", _rust_common = "rust_common") 30*d4726bddSHONG Yifanload( 31*d4726bddSHONG Yifan "//rust/private:rust.bzl", 32*d4726bddSHONG Yifan _rust_binary = "rust_binary", 33*d4726bddSHONG Yifan _rust_library = "rust_library", 34*d4726bddSHONG Yifan _rust_library_group = "rust_library_group", 35*d4726bddSHONG Yifan _rust_proc_macro = "rust_proc_macro", 36*d4726bddSHONG Yifan _rust_shared_library = "rust_shared_library", 37*d4726bddSHONG Yifan _rust_static_library = "rust_static_library", 38*d4726bddSHONG Yifan _rust_test = "rust_test", 39*d4726bddSHONG Yifan _rust_test_suite = "rust_test_suite", 40*d4726bddSHONG Yifan) 41*d4726bddSHONG Yifanload( 42*d4726bddSHONG Yifan "//rust/private:rust_analyzer.bzl", 43*d4726bddSHONG Yifan _rust_analyzer_aspect = "rust_analyzer_aspect", 44*d4726bddSHONG Yifan) 45*d4726bddSHONG Yifanload( 46*d4726bddSHONG Yifan "//rust/private:rustc.bzl", 47*d4726bddSHONG Yifan _error_format = "error_format", 48*d4726bddSHONG Yifan _extra_exec_rustc_flag = "extra_exec_rustc_flag", 49*d4726bddSHONG Yifan _extra_exec_rustc_flags = "extra_exec_rustc_flags", 50*d4726bddSHONG Yifan _extra_rustc_flag = "extra_rustc_flag", 51*d4726bddSHONG Yifan _extra_rustc_flags = "extra_rustc_flags", 52*d4726bddSHONG Yifan _no_std = "no_std", 53*d4726bddSHONG Yifan _per_crate_rustc_flag = "per_crate_rustc_flag", 54*d4726bddSHONG Yifan _rustc_output_diagnostics = "rustc_output_diagnostics", 55*d4726bddSHONG Yifan) 56*d4726bddSHONG Yifanload( 57*d4726bddSHONG Yifan "//rust/private:rustdoc.bzl", 58*d4726bddSHONG Yifan _rust_doc = "rust_doc", 59*d4726bddSHONG Yifan) 60*d4726bddSHONG Yifanload( 61*d4726bddSHONG Yifan "//rust/private:rustdoc_test.bzl", 62*d4726bddSHONG Yifan _rust_doc_test = "rust_doc_test", 63*d4726bddSHONG Yifan) 64*d4726bddSHONG Yifanload( 65*d4726bddSHONG Yifan "//rust/private:rustfmt.bzl", 66*d4726bddSHONG Yifan _rustfmt_aspect = "rustfmt_aspect", 67*d4726bddSHONG Yifan _rustfmt_test = "rustfmt_test", 68*d4726bddSHONG Yifan) 69*d4726bddSHONG Yifanload( 70*d4726bddSHONG Yifan "//rust/private:unpretty.bzl", 71*d4726bddSHONG Yifan _rust_unpretty = "rust_unpretty", 72*d4726bddSHONG Yifan _rust_unpretty_aspect = "rust_unpretty_aspect", 73*d4726bddSHONG Yifan) 74*d4726bddSHONG Yifan 75*d4726bddSHONG Yifanrust_library = _rust_library 76*d4726bddSHONG Yifan# See @rules_rust//rust/private:rust.bzl for a complete description. 77*d4726bddSHONG Yifan 78*d4726bddSHONG Yifanrust_static_library = _rust_static_library 79*d4726bddSHONG Yifan# See @rules_rust//rust/private:rust.bzl for a complete description. 80*d4726bddSHONG Yifan 81*d4726bddSHONG Yifanrust_shared_library = _rust_shared_library 82*d4726bddSHONG Yifan# See @rules_rust//rust/private:rust.bzl for a complete description. 83*d4726bddSHONG Yifan 84*d4726bddSHONG Yifanrust_proc_macro = _rust_proc_macro 85*d4726bddSHONG Yifan# See @rules_rust//rust/private:rust.bzl for a complete description. 86*d4726bddSHONG Yifan 87*d4726bddSHONG Yifanrust_binary = _rust_binary 88*d4726bddSHONG Yifan# See @rules_rust//rust/private:rust.bzl for a complete description. 89*d4726bddSHONG Yifan 90*d4726bddSHONG Yifanrust_library_group = _rust_library_group 91*d4726bddSHONG Yifan# See @rules_rust//rust/private:rust.bzl for a complete description. 92*d4726bddSHONG Yifan 93*d4726bddSHONG Yifanrust_test = _rust_test 94*d4726bddSHONG Yifan# See @rules_rust//rust/private:rust.bzl for a complete description. 95*d4726bddSHONG Yifan 96*d4726bddSHONG Yifanrust_test_suite = _rust_test_suite 97*d4726bddSHONG Yifan# See @rules_rust//rust/private:rust.bzl for a complete description. 98*d4726bddSHONG Yifan 99*d4726bddSHONG Yifanrust_doc = _rust_doc 100*d4726bddSHONG Yifan# See @rules_rust//rust/private:rustdoc.bzl for a complete description. 101*d4726bddSHONG Yifan 102*d4726bddSHONG Yifanrust_doc_test = _rust_doc_test 103*d4726bddSHONG Yifan# See @rules_rust//rust/private:rustdoc_test.bzl for a complete description. 104*d4726bddSHONG Yifan 105*d4726bddSHONG Yifanclippy_flag = _clippy_flag 106*d4726bddSHONG Yifanclippy_flags = _clippy_flags 107*d4726bddSHONG Yifan# See @rules_rust//rust/private:clippy.bzl for a complete description. 108*d4726bddSHONG Yifan 109*d4726bddSHONG Yifanrust_clippy_aspect = _rust_clippy_aspect 110*d4726bddSHONG Yifan# See @rules_rust//rust/private:clippy.bzl for a complete description. 111*d4726bddSHONG Yifan 112*d4726bddSHONG Yifanrust_clippy = _rust_clippy 113*d4726bddSHONG Yifan# See @rules_rust//rust/private:clippy.bzl for a complete description. 114*d4726bddSHONG Yifan 115*d4726bddSHONG Yifancapture_clippy_output = _capture_clippy_output 116*d4726bddSHONG Yifan# See @rules_rust//rust/private:clippy.bzl for a complete description. 117*d4726bddSHONG Yifan 118*d4726bddSHONG Yifanrustc_output_diagnostics = _rustc_output_diagnostics 119*d4726bddSHONG Yifan# See @rules_rust//rust/private:rustc.bzl for a complete description. 120*d4726bddSHONG Yifan 121*d4726bddSHONG Yifanrust_unpretty_aspect = _rust_unpretty_aspect 122*d4726bddSHONG Yifan# See @rules_rust//rust/private:unpretty.bzl for a complete description. 123*d4726bddSHONG Yifan 124*d4726bddSHONG Yifanrust_unpretty = _rust_unpretty 125*d4726bddSHONG Yifan# See @rules_rust//rust/private:unpretty.bzl for a complete description. 126*d4726bddSHONG Yifan 127*d4726bddSHONG Yifanerror_format = _error_format 128*d4726bddSHONG Yifan# See @rules_rust//rust/private:rustc.bzl for a complete description. 129*d4726bddSHONG Yifan 130*d4726bddSHONG Yifanextra_rustc_flag = _extra_rustc_flag 131*d4726bddSHONG Yifan# See @rules_rust//rust/private:rustc.bzl for a complete description. 132*d4726bddSHONG Yifan 133*d4726bddSHONG Yifanextra_rustc_flags = _extra_rustc_flags 134*d4726bddSHONG Yifan# See @rules_rust//rust/private:rustc.bzl for a complete description. 135*d4726bddSHONG Yifan 136*d4726bddSHONG Yifanextra_exec_rustc_flag = _extra_exec_rustc_flag 137*d4726bddSHONG Yifan# See @rules_rust//rust/private:rustc.bzl for a complete description. 138*d4726bddSHONG Yifan 139*d4726bddSHONG Yifanextra_exec_rustc_flags = _extra_exec_rustc_flags 140*d4726bddSHONG Yifan# See @rules_rust//rust/private:rustc.bzl for a complete description. 141*d4726bddSHONG Yifan 142*d4726bddSHONG Yifanper_crate_rustc_flag = _per_crate_rustc_flag 143*d4726bddSHONG Yifan# See @rules_rust//rust/private:rustc.bzl for a complete description. 144*d4726bddSHONG Yifan 145*d4726bddSHONG Yifanrust_common = _rust_common 146*d4726bddSHONG Yifan# See @rules_rust//rust/private:common.bzl for a complete description. 147*d4726bddSHONG Yifan 148*d4726bddSHONG Yifanrust_analyzer_aspect = _rust_analyzer_aspect 149*d4726bddSHONG Yifan# See @rules_rust//rust/private:rust_analyzer.bzl for a complete description. 150*d4726bddSHONG Yifan 151*d4726bddSHONG Yifanrustfmt_aspect = _rustfmt_aspect 152*d4726bddSHONG Yifan# See @rules_rust//rust/private:rustfmt.bzl for a complete description. 153*d4726bddSHONG Yifan 154*d4726bddSHONG Yifanrustfmt_test = _rustfmt_test 155*d4726bddSHONG Yifan# See @rules_rust//rust/private:rustfmt.bzl for a complete description. 156*d4726bddSHONG Yifan 157*d4726bddSHONG Yifanrust_stdlib_filegroup = _rust_stdlib_filegroup 158*d4726bddSHONG Yifan# See @rules_rust//rust:toolchain.bzl for a complete description. 159*d4726bddSHONG Yifan 160*d4726bddSHONG Yifanno_std = _no_std 161