forked from liftedinit/many-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
WORKSPACE.bazel
60 lines (47 loc) · 1.85 KB
/
WORKSPACE.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "0cc7e6b39e492710b819e00d48f2210ae626b717a3ab96e048c43ab57e61d204",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_rust/releases/download/0.10.0/rules_rust-v0.10.0.tar.gz",
"https://github.com/bazelbuild/rules_rust/releases/download/0.10.0/rules_rust-v0.10.0.tar.gz",
],
)
load("@rules_rust//rust:repositories.bzl", "rules_rust_dependencies", "rust_register_toolchains")
rules_rust_dependencies()
RUST_VERSION = "1.62.0"
rust_register_toolchains(
edition = "2021",
version = RUST_VERSION,
)
load("@rules_rust//crate_universe:repositories.bzl", "crate_universe_dependencies")
crate_universe_dependencies()
# Generate `rust-analyser` "rust-project.json"
load("@rules_rust//tools/rust_analyzer:deps.bzl", "rust_analyzer_dependencies")
rust_analyzer_dependencies()
load("@rules_rust//crate_universe:defs.bzl", "crate", "crates_repository")
crates_repository(
name = "crate_index",
cargo_lockfile = "//:Cargo.Bazel.lock",
lockfile = "//:cargo-bazel-lock.json",
manifests = [
"//:Cargo.toml",
"//src/many:Cargo.toml",
"//src/many-client:Cargo.toml",
"//src/many-client-macros:Cargo.toml",
"//src/many-error:Cargo.toml",
"//src/many-identity:Cargo.toml",
"//src/many-identity-dsa:Cargo.toml",
"//src/many-identity-hsm:Cargo.toml",
"//src/many-identity-webauthn:Cargo.toml",
"//src/many-macros:Cargo.toml",
"//src/many-mock:Cargo.toml",
"//src/many-modules:Cargo.toml",
"//src/many-protocol:Cargo.toml",
"//src/many-server:Cargo.toml",
"//src/many-types:Cargo.toml",
],
rust_version = RUST_VERSION,
)
load("@crate_index//:defs.bzl", "crate_repositories")
crate_repositories()