This repository has been archived by the owner on Jan 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
WORKSPACE.bazel
58 lines (45 loc) · 1.81 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
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "5c2b6745236f8ce547f82eeacbbcc81d736734cc8bd92e60d3e3cdfa6e167bb5",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.15.0/rules_rust-v0.15.0.tar.gz"],
)
load("@rules_rust//rust:repositories.bzl", "rules_rust_dependencies", "rust_register_toolchains")
rules_rust_dependencies()
RUST_VERSION = "nightly/2023-01-03"
rust_register_toolchains(
edition = "2021",
versions = [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",
# The following annotations are needed to prevent Bazel passing incompatible C/CXX flags when coverage is enabled
# https://github.com/bazelbuild/rules_rust/issues/1550
annotations = {"librocksdb-sys": [crate.annotation(
build_script_env = {
"CXXFLAGS": "-Wno-error=coverage-invalid-line-number",
},
)]},
cargo_lockfile = "//:Cargo.Bazel.lock",
lockfile = "//:cargo-bazel-lock.json",
manifests = [
"//:Cargo.toml",
"//src/http_proxy:Cargo.toml",
"//src/idstore-export:Cargo.toml",
"//src/kvstore:Cargo.toml",
"//src/ledger:Cargo.toml",
"//src/ledger-db:Cargo.toml",
"//src/many-abci:Cargo.toml",
"//src/many-kvstore:Cargo.toml",
"//src/many-ledger:Cargo.toml",
],
rust_version = RUST_VERSION,
)
load("@crate_index//:defs.bzl", "crate_repositories")
crate_repositories()