1+ load ("@crate_index//:defs.bzl" , "aliases" , "all_crate_deps" )
12load (
23 "@rules_rust//rust:defs.bzl" ,
34 "rust_binary" ,
@@ -10,13 +11,19 @@ package(default_visibility = [
1011 "//visibility:public" ,
1112])
1213
14+ exports_files ([
15+ "Cargo.toml" ,
16+ "Cargo.lock" ,
17+ ])
18+
1319licenses ([
1420 "notice" , # Apache 2 license
1521])
1622
1723rust_library (
1824 name = "serde_annotate" ,
1925 srcs = glob (["**/*.rs" ]),
26+ aliases = aliases (),
2027 compile_data = ["src/relax.pest" ],
2128 crate_features = [
2229 ],
@@ -25,7 +32,7 @@ rust_library(
2532 edition = "2021" ,
2633 proc_macro_deps = [
2734 "//annotate_derive" ,
28- "//third_party/rust/crates :pest_derive" ,
35+ "@crate_index// :pest_derive" ,
2936 ],
3037 rustc_flags = [
3138 "--cap-lints=allow" ,
@@ -35,20 +42,32 @@ rust_library(
3542 ],
3643 version = "0.1.0" ,
3744 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" ,
4552 ],
4653)
4754
4855rust_test (
4956 name = "serde_annotate_test" ,
57+ aliases = aliases (
58+ normal_dev = True ,
59+ proc_macro_dev = True ,
60+ ),
5061 crate = ":serde_annotate" ,
62+ proc_macro_deps = [
63+ "@crate_index//:serde_derive" ,
64+ ],
5165 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" ,
5372 ],
5473)
0 commit comments