1
+ load ("@crate_index//:defs.bzl" , "aliases" , "all_crate_deps" )
1
2
load (
2
3
"@rules_rust//rust:defs.bzl" ,
3
4
"rust_binary" ,
@@ -10,13 +11,19 @@ package(default_visibility = [
10
11
"//visibility:public" ,
11
12
])
12
13
14
+ exports_files ([
15
+ "Cargo.toml" ,
16
+ "Cargo.lock" ,
17
+ ])
18
+
13
19
licenses ([
14
20
"notice" , # Apache 2 license
15
21
])
16
22
17
23
rust_library (
18
24
name = "serde_annotate" ,
19
25
srcs = glob (["**/*.rs" ]),
26
+ aliases = aliases (),
20
27
compile_data = ["src/relax.pest" ],
21
28
crate_features = [
22
29
],
@@ -25,7 +32,7 @@ rust_library(
25
32
edition = "2021" ,
26
33
proc_macro_deps = [
27
34
"//annotate_derive" ,
28
- "//third_party/rust/crates :pest_derive" ,
35
+ "@crate_index// :pest_derive" ,
29
36
],
30
37
rustc_flags = [
31
38
"--cap-lints=allow" ,
@@ -35,20 +42,32 @@ rust_library(
35
42
],
36
43
version = "0.1.0" ,
37
44
deps = [
38
- "//third_party/rust/crates :ansi_term" ,
39
- "//third_party/rust/crates:num_traits " ,
40
- "//third_party/rust/crates :once_cell" ,
41
- "//third_party/rust/crates :pest" ,
42
- "//third_party/rust/crates :regex" ,
43
- "//third_party/rust/crates :serde" ,
44
- "//third_party/rust/crates :thiserror" ,
45
+ "@crate_index// :ansi_term" ,
46
+ "@crate_index//:num-traits " ,
47
+ "@crate_index// :once_cell" ,
48
+ "@crate_index// :pest" ,
49
+ "@crate_index// :regex" ,
50
+ "@crate_index// :serde" ,
51
+ "@crate_index// :thiserror" ,
45
52
],
46
53
)
47
54
48
55
rust_test (
49
56
name = "serde_annotate_test" ,
57
+ aliases = aliases (
58
+ normal_dev = True ,
59
+ proc_macro_dev = True ,
60
+ ),
50
61
crate = ":serde_annotate" ,
62
+ proc_macro_deps = [
63
+ "@crate_index//:serde_derive" ,
64
+ ],
51
65
deps = [
52
- "//third_party/rust/crates:anyhow" ,
66
+ "@crate_index//:anyhow" ,
67
+ "@crate_index//:deser-hjson" ,
68
+ "@crate_index//:json5" ,
69
+ "@crate_index//:serde_bytes" ,
70
+ "@crate_index//:serde_json" ,
71
+ "@crate_index//:serde_yaml" ,
53
72
],
54
73
)
0 commit comments