Skip to content

Commit

Permalink
Added bazel stuff.
Browse files Browse the repository at this point in the history
  • Loading branch information
SirVer committed Dec 7, 2023
1 parent 4f6fe9c commit 85c7b15
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 18 deletions.
19 changes: 1 addition & 18 deletions zvt/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,14 @@ load("@crate_index//:defs.bzl", "all_crate_deps")

rust_library(
name = "zvt",
srcs = glob(
["src/**/*.rs"],
exclude = ["src/main.rs"],
),
srcs = glob(["src/**/*.rs"]),
crate_name = "zvt",
edition = "2021",
proc_macro_deps = all_crate_deps(proc_macro = True) + ["//zvt_derive"],
visibility = ["//visibility:public"],
deps = all_crate_deps() + ["//zvt_builder"],
)

rust_binary(
name = "status",
srcs = glob(["src/bin/status/main.rs"]),
edition = "2021",
deps = all_crate_deps() + [":zvt"],
)

rust_binary(
name = "feig_update",
srcs = glob(["src/bin/feig_update/main.rs"]),
edition = "2021",
deps = all_crate_deps() + [":zvt"],
)

rust_test(
name = "zvt_test",
srcs = [],
Expand Down
16 changes: 16 additions & 0 deletions zvt_cli/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
load("@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", "rust_test")
load("@crate_index//:defs.bzl", "all_crate_deps")

rust_binary(
name = "zvt_cli",
srcs = glob(["src/bin/main.rs"]),
edition = "2021",
deps = all_crate_deps() + ["//zvt"],
)

rust_binary(
name = "feig_update",
srcs = glob(["src/bin/feig_update/main.rs"]),
edition = "2021",
deps = all_crate_deps() + ["//zvt"],
)

0 comments on commit 85c7b15

Please sign in to comment.