-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMODULE.bazel
More file actions
42 lines (35 loc) · 1.18 KB
/
Copy pathMODULE.bazel
File metadata and controls
42 lines (35 loc) · 1.18 KB
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
module(
name = "stdbr",
version = "0.3.1",
)
bazel_dep(name = "rules_rust", version = "0.70.0")
bazel_dep(name = "rules_rust_wasm_bindgen", version = "0.70.0")
bazel_dep(name = "rules_python", version = "1.6.3")
bazel_dep(name = "bazel_skylib", version = "1.8.2")
bazel_dep(name = "platforms", version = "1.0.0")
rust = use_extension("@rules_rust//rust:extensions.bzl", "rust")
rust.toolchain(
edition = "2024",
versions = ["1.87.0"],
)
use_repo(rust, "rust_toolchains")
register_toolchains("@rust_toolchains//:all")
crate = use_extension("@rules_rust//crate_universe:extensions.bzl", "crate")
crate.from_cargo(
name = "crates",
cargo_lockfile = "//:Cargo.lock",
manifests = [
"//:Cargo.toml",
"//core:Cargo.toml",
"//bindings/ffi-c:Cargo.toml",
"//bindings/nodejs:Cargo.toml",
"//bindings/python:Cargo.toml",
"//bindings/wasm:Cargo.toml",
"//tools/parity_gen:Cargo.toml",
],
)
use_repo(crate, "crates")
cbindgen_repository = use_repo_rule("//tools:nix_tools.bzl", "cbindgen_repository")
cbindgen_repository(name = "nix_cbindgen")
cjson = use_extension("//tools:cjson_ext.bzl", "cjson")
use_repo(cjson, "cjson")