forked from cameron-martin/bazel-lsp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMODULE.bazel
44 lines (35 loc) · 1012 Bytes
/
MODULE.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
bazel_dep(name = "rules_rust", version = "0.49.3")
rust = use_extension("@rules_rust//rust:extensions.bzl", "rust")
rust.toolchain(
edition = "2021",
versions = ["1.80.0"],
)
use_repo(rust, "rust_toolchains")
register_toolchains("@rust_toolchains//:all")
rust_host_tools = use_extension("@rules_rust//rust:extensions.bzl", "rust_host_tools")
use_repo(rust_host_tools, "rust_host_tools")
crate = use_extension(
"@rules_rust//crate_universe:extension.bzl",
"crate",
)
crate.from_cargo(
name = "crates",
cargo_lockfile = "Cargo.lock",
manifests = ["Cargo.toml"],
)
use_repo(crate, "crates")
crate.annotation(
crate = "protoc-gen-prost",
gen_binaries = ["protoc-gen-prost"],
)
crate.annotation(
crate = "protoc-gen-tonic",
gen_binaries = ["protoc-gen-tonic"],
)
bazel_dep(
name = "rules_bazel_integration_test",
version = "0.23.0",
dev_dependency = True,
)
bazel_dep(name = "protobuf", version = "27.1")
register_toolchains("//prost:prost_toolchain")