forked from pactflow/pact-protobuf-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deps.bzl
20 lines (18 loc) · 763 Bytes
/
deps.bzl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
load("@rules_rust//rust:repositories.bzl", "rules_rust_dependencies", "rust_register_toolchains")
load("@rules_rust//crate_universe:repositories.bzl", "crate_universe_dependencies")
load("@rules_rust//crate_universe:defs.bzl", "crates_repository", "crate")
def deps(json = "cargo-bazel-lock.json"):
rules_rust_dependencies()
rust_register_toolchains(edition = "2021")
crate_universe_dependencies(bootstrap = True)
load_crat(json)
def load_crat(json):
crates_repository(
name = "crate_index_protobuf",
cargo_lockfile = "@source_protobuf//:Cargo.lock",
generator = "@cargo_bazel_bootstrap//:cargo-bazel",
lockfile = "@//:"+json,
manifests = [
"@source_protobuf//:Cargo.toml"
]
)