@@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library")
10
10
11
11
package(default_visibility = ["//visibility:public"])
12
12
13
- # licenses([
14
- # "TODO", # MIT
15
- # ])
16
-
17
13
rust_library(
18
14
name = "clap",
19
- srcs = glob(["**/*.rs"]),
15
+ srcs = glob(
16
+ include = ["**/*.rs"],
17
+ allow_empty = False,
18
+ ),
20
19
compile_data = glob(
21
20
include = ["**"],
21
+ allow_empty = True,
22
22
exclude = [
23
23
"**/* *",
24
+ ".tmp_git_root/**/*",
24
25
"BUILD",
25
26
"BUILD.bazel",
26
27
"WORKSPACE",
@@ -38,7 +39,9 @@ rust_library(
38
39
],
39
40
crate_root = "src/lib.rs",
40
41
edition = "2018",
41
- rustc_flags = ["--cap-lints=allow"],
42
+ rustc_flags = [
43
+ "--cap-lints=allow",
44
+ ],
42
45
tags = [
43
46
"cargo-bazel",
44
47
"crate-name=clap",
@@ -73,6 +76,12 @@ rust_library(
73
76
"@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [
74
77
"@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows))
75
78
],
79
+ "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [
80
+ "@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows))
81
+ ],
82
+ "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710": [
83
+ "@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows))
84
+ ],
76
85
"@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [
77
86
"@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows))
78
87
],
@@ -136,6 +145,9 @@ rust_library(
136
145
"@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [
137
146
"@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows))
138
147
],
148
+ "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [
149
+ "@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows))
150
+ ],
139
151
"@rules_rust//rust/platform:x86_64-unknown-none": [
140
152
"@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows))
141
153
],
0 commit comments