build: add Bazel Rust workflow
This commit was merged in pull request #2.
This commit is contained in:
13
src/machoke/BUILD
Normal file
13
src/machoke/BUILD
Normal file
@@ -0,0 +1,13 @@
|
||||
load("@rules_rust//rust:defs.bzl", "rust_binary", "rust_library")
|
||||
|
||||
rust_library(
|
||||
name = "machoke_lib",
|
||||
crate_name = "machoke",
|
||||
srcs = ["lib.rs"],
|
||||
)
|
||||
|
||||
rust_binary(
|
||||
name = "machoke",
|
||||
srcs = ["main.rs"],
|
||||
deps = [":machoke_lib"],
|
||||
)
|
||||
Reference in New Issue
Block a user