@@ -3,91 +3,75 @@ cargo-raze crate build file.
3
3
4
4
DO NOT EDIT! Replaced on runs of cargo-raze
5
5
"""
6
-
7
6
package(default_visibility = [
8
- # Public for visibility by "@raze__crate__version//" targets.
9
- #
10
- # Prefer access through "//wasm_bindgen/raze", which limits external
11
- # visibility to explicit Cargo.toml dependencies.
12
- "//visibility:public",
7
+ # Public for visibility by "@raze__crate__version//" targets.
8
+ #
9
+ # Prefer access through "//wasm_bindgen/raze", which limits external
10
+ # visibility to explicit Cargo.toml dependencies.
11
+ "//visibility:public",
13
12
])
14
13
15
14
licenses([
16
- "restricted ", # "MIT OR Apache-2.0"
15
+ "notice ", # MIT from expression "MIT OR Apache-2.0"
17
16
])
18
17
19
18
load(
20
19
"@io_bazel_rules_rust//rust:rust.bzl",
21
- "rust_binary",
22
20
"rust_library",
21
+ "rust_binary",
23
22
"rust_test",
24
23
)
25
24
26
- rust_binary(
25
+ load(
26
+ "@io_bazel_rules_rust//cargo:cargo_build_script.bzl",
27
+ "cargo_build_script",
28
+ )
29
+
30
+ cargo_build_script(
27
31
name = "syn_build_script",
28
32
srcs = glob(["**/*.rs"]),
29
- crate_features = [
30
- "clone-impls",
31
- "default",
32
- "derive",
33
- "extra-traits",
34
- "full",
35
- "parsing",
36
- "printing",
37
- "proc-macro",
38
- "proc-macro2",
39
- "quote",
40
- "visit",
41
- ],
42
33
crate_root = "build.rs",
43
- data = glob(["*"]),
44
34
edition = "2015",
35
+ deps = [
36
+ ],
45
37
rustc_flags = [
46
38
"--cap-lints=allow",
47
39
],
40
+ crate_features = [
41
+ "clone-impls",
42
+ "default",
43
+ "derive",
44
+ "extra-traits",
45
+ "full",
46
+ "parsing",
47
+ "printing",
48
+ "proc-macro",
49
+ "quote",
50
+ "visit",
51
+ ],
52
+ data = glob(["**"]),
48
53
version = "0.15.43",
49
54
visibility = ["//visibility:private"],
50
- deps = [
51
- ],
52
55
)
53
56
54
- genrule(
55
- name = "syn_build_script_executor",
56
- srcs = glob([
57
- "*",
58
- "**/*.rs",
59
- ]),
60
- outs = ["syn_out_dir_outputs.tar.gz"],
61
- cmd = "mkdir -p $$(dirname $@)/syn_out_dir_outputs/;" +
62
- " (export CARGO_MANIFEST_DIR=\"$$PWD/$$(dirname $(location :Cargo.toml))\";" +
63
- # TODO(acmcarther): This needs to be revisited as part of the cross compilation story.
64
- # See also: https://github.com/google/cargo-raze/pull/54
65
- " export TARGET='x86_64-unknown-linux-gnu';" +
66
- " export RUST_BACKTRACE=1;" +
67
- " export CARGO_FEATURE_CLONE_IMPLS=1;" +
68
- " export CARGO_FEATURE_DEFAULT=1;" +
69
- " export CARGO_FEATURE_DERIVE=1;" +
70
- " export CARGO_FEATURE_EXTRA_TRAITS=1;" +
71
- " export CARGO_FEATURE_FULL=1;" +
72
- " export CARGO_FEATURE_PARSING=1;" +
73
- " export CARGO_FEATURE_PRINTING=1;" +
74
- " export CARGO_FEATURE_PROC_MACRO=1;" +
75
- " export CARGO_FEATURE_PROC_MACRO2=1;" +
76
- " export CARGO_FEATURE_QUOTE=1;" +
77
- " export CARGO_FEATURE_VISIT=1;" +
78
- " export OUT_DIR=$$PWD/$$(dirname $@)/syn_out_dir_outputs;" +
79
- " export BINARY_PATH=\"$$PWD/$(location :syn_build_script)\";" +
80
- " export OUT_TAR=$$PWD/$@;" +
81
- " cd $$(dirname $(location :Cargo.toml)) && $$BINARY_PATH && tar -czf $$OUT_TAR -C $$OUT_DIR .)",
82
- tags = ["no-sandbox"],
83
- tools = [
84
- ":syn_build_script",
85
- ],
86
- )
87
57
88
58
rust_library(
89
59
name = "syn",
60
+ crate_type = "lib",
61
+ deps = [
62
+ ":syn_build_script",
63
+ "@raze__proc_macro2__0_4_30//:proc_macro2",
64
+ "@raze__quote__0_6_12//:quote",
65
+ "@raze__unicode_xid__0_1_0//:unicode_xid",
66
+ ],
90
67
srcs = glob(["**/*.rs"]),
68
+ crate_root = "src/lib.rs",
69
+ edition = "2015",
70
+ rustc_flags = [
71
+ "--cap-lints=allow",
72
+ "--cfg=syn_can_call_macro_by_path",
73
+ ],
74
+ version = "0.15.43",
91
75
crate_features = [
92
76
"clone-impls",
93
77
"default",
@@ -97,24 +81,9 @@ rust_library(
97
81
"parsing",
98
82
"printing",
99
83
"proc-macro",
100
- "proc-macro2",
101
84
"quote",
102
85
"visit",
103
86
],
104
- crate_root = "src/lib.rs",
105
- crate_type = "lib",
106
- edition = "2015",
107
- out_dir_tar = ":syn_build_script_executor",
108
- rustc_flags = [
109
- "--cap-lints=allow",
110
- "--cfg=syn_can_call_macro_by_path",
111
- ],
112
- version = "0.15.43",
113
- deps = [
114
- "@raze__proc_macro2__0_4_30//:proc_macro2",
115
- "@raze__quote__0_6_12//:quote",
116
- "@raze__unicode_xid__0_1_0//:unicode_xid",
117
- ],
118
87
)
119
88
120
89
# Unsupported target "test_asyncness" with type "test" omitted
0 commit comments