|
| 1 | +load( |
| 2 | + "@rules_rust//rust:defs.bzl", |
| 3 | + "rust_binary", |
| 4 | + "rust_library", |
| 5 | + "rust_proc_macro", |
| 6 | + "rust_test", |
| 7 | +) |
| 8 | + |
| 9 | +package(default_visibility = [ |
| 10 | + "//visibility:public", |
| 11 | +]) |
| 12 | + |
| 13 | +licenses([ |
| 14 | + "notice", # Apache 2 license |
| 15 | +]) |
| 16 | + |
| 17 | +rust_library( |
| 18 | + name = "serde_annotate", |
| 19 | + srcs = glob(["**/*.rs"]), |
| 20 | + compile_data = ["src/relax.pest"], |
| 21 | + crate_features = [ |
| 22 | + ], |
| 23 | + crate_root = "src/lib.rs", |
| 24 | + data = [], |
| 25 | + edition = "2021", |
| 26 | + proc_macro_deps = [ |
| 27 | + "//annotate_derive", |
| 28 | + "//third_party/rust/crates:pest_derive", |
| 29 | + ], |
| 30 | + rustc_flags = [ |
| 31 | + "--cap-lints=allow", |
| 32 | + ], |
| 33 | + tags = [ |
| 34 | + "crate-name=serde_annotate", |
| 35 | + ], |
| 36 | + version = "0.1.0", |
| 37 | + deps = [ |
| 38 | + "//third_party/rust/crates:ansi_term", |
| 39 | + "//third_party/rust/crates:inventory", |
| 40 | + "//third_party/rust/crates:num_traits", |
| 41 | + "//third_party/rust/crates:once_cell", |
| 42 | + "//third_party/rust/crates:pest", |
| 43 | + "//third_party/rust/crates:regex", |
| 44 | + "//third_party/rust/crates:serde", |
| 45 | + "//third_party/rust/crates:thiserror", |
| 46 | + ], |
| 47 | +) |
| 48 | + |
| 49 | +rust_test( |
| 50 | + name = "serde_annotate_test", |
| 51 | + crate = ":serde_annotate", |
| 52 | + deps = [ |
| 53 | + "//third_party/rust/crates:anyhow", |
| 54 | + ], |
| 55 | +) |
0 commit comments