forked from bazelbuild/rules_rust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.bazel
109 lines (94 loc) · 2.86 KB
/
BUILD.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
exports_files([
".clippy.toml",
".rustfmt.toml",
"LICENSE",
"MODULE.bazel",
"version.bzl",
])
# This setting may be changed from the command line to generate machine readable errors.
alias(
name = "error_format",
actual = "//rust/settings:error_format",
visibility = ["//visibility:public"],
)
# This setting may be changed from the command line to generate rustc diagnostics.
alias(
name = "rustc_output_diagnostics",
actual = "//rust/settings:rustc_output_diagnostics",
visibility = ["//visibility:public"],
)
# This setting may be used to pass extra options to clippy from the command line.
# It applies across all targets.
alias(
name = "clippy_flags",
actual = "//rust/settings:clippy_flags",
visibility = ["//visibility:public"],
)
alias(
name = "clippy_flag",
actual = "//rust/settings:clippy_flag",
visibility = ["//visibility:public"],
)
# This setting may be used to pass extra options to rustc from the command line
# in non-exec configuration.
# It applies across all targets whereas the rustc_flags option on targets applies only
# to that target. This can be useful for passing build-wide options such as LTO.
alias(
name = "extra_rustc_flags",
actual = "//rust/settings:extra_rustc_flags",
visibility = ["//visibility:public"],
)
alias(
name = "extra_rustc_flag",
actual = "//rust/settings:extra_rustc_flag",
visibility = ["//visibility:public"],
)
# This setting may be used to pass extra options to rustc from the command line
# in exec configuration.
# It applies across all targets whereas the rustc_flags option on targets applies only
# to that target. This can be useful for passing build-wide options such as LTO.
alias(
name = "extra_exec_rustc_flags",
actual = "//rust/settings:extra_exec_rustc_flags",
visibility = ["//visibility:public"],
)
alias(
name = "extra_exec_rustc_flag",
actual = "//rust/settings:extra_exec_rustc_flag",
visibility = ["//visibility:public"],
)
alias(
name = "experimental_per_crate_rustc_flag",
actual = "//rust/settings:experimental_per_crate_rustc_flag",
visibility = ["//visibility:public"],
)
alias(
name = "clippy.toml",
actual = "//rust/settings:clippy.toml",
visibility = ["//visibility:public"],
)
alias(
name = "rustfmt.toml",
actual = "//rust/settings:rustfmt.toml",
visibility = ["//visibility:public"],
)
alias(
name = "rustfmt",
actual = "//tools/rustfmt:target_aware_rustfmt",
visibility = ["//visibility:public"],
)
alias(
name = "capture_clippy_output",
actual = "//rust/settings:capture_clippy_output",
visibility = ["//visibility:public"],
)
alias(
name = "no_std",
actual = "//rust/settings:no_std",
visibility = ["//visibility:public"],
)
alias(
name = "is_no_std",
actual = "//rust/settings:is_no_std",
visibility = ["//visibility:public"],
)