Add the Xatu Rust package as a minimal hello-world skeleton with Cargo workspace metadata and Bazel library, binary, and test targets. Include the Statix and Deadnix evaluation notes so the new linter work starts with the prior rule and architecture research.
21 lines
372 B
Python
21 lines
372 B
Python
load("@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", "rust_test")
|
|
|
|
rust_library(
|
|
name = "xatu_lib",
|
|
crate_name = "xatu",
|
|
srcs = ["lib.rs"],
|
|
)
|
|
|
|
rust_binary(
|
|
name = "xatu",
|
|
crate_name = "xatu_cli",
|
|
srcs = ["main.rs"],
|
|
deps = [":xatu_lib"],
|
|
)
|
|
|
|
rust_test(
|
|
name = "lib_test",
|
|
srcs = ["lib_test.rs"],
|
|
deps = [":xatu_lib"],
|
|
)
|