Build from rust
Seto Elkahfi committed
Jun 9, 2024 at 07:14 UTC
23a483b66268861a22a1d48abd47d56883ab39f5
2 files changed
+24
WORKSPACE.bazel
+19
@@ -1 +1,20 @@
1
# Marker that this folder is the root of a Bazel workspace
2
+load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
3
+
4
+http_archive(
5
+ name = "rules_rust",
6
+ integrity = "sha256-+bWb47wg0VchIADaHt6L5Dma2Gn+Q589nz/MKcTi+lo=",
7
+ urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.45.1/rules_rust-v0.45.1.tar.gz"],
8
+)
9
+
10
+
11
+load("@rules_rust//rust:repositories.bzl", "rules_rust_dependencies", "rust_register_toolchains")
12
+
13
+rules_rust_dependencies()
14
+
15
+rust_register_toolchains(
16
+ edition = "2021",
17
+ versions = [
18
+ "1.77.0"
19
+ ],
20
+)
src-tauri/BUILD.bazel
new
+5
@@ -0,0 +1,5 @@
1
+load("@rules_rust//rust:defs.bzl", "rust_binary")
2
+
3
+rust_binary(
4
+ name = "tauri"
5
+)