-
Notifications
You must be signed in to change notification settings - Fork 4
/
MODULE.bazel
61 lines (52 loc) · 1.99 KB
/
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
module(
name = "proxydetox",
version = "0.0.0",
)
# Apple
bazel_dep(name = "apple_support", version = "1.17.1", repo_name = "build_bazel_apple_support") # apple_support must come above rules_cc
bazel_dep(name = "rules_apple", version = "3.16.1", repo_name = "build_bazel_rules_apple")
bazel_dep(name = "rules_swift", version = "2.3.1", repo_name = "build_bazel_rules_swift")
bazel_dep(name = "bazel_skylib", version = "1.7.1")
bazel_dep(name = "platforms", version = "0.0.10")
bazel_dep(name = "rules_cc", version = "0.1.0")
bazel_dep(name = "rules_pkg", version = "1.0.1")
bazel_dep(name = "rules_rust", version = "0.56.0")
apple_cc_configure = use_extension(
"@build_bazel_apple_support//crosstool:setup.bzl",
"apple_cc_configure_extension",
)
use_repo(apple_cc_configure, "local_config_apple_cc", "local_config_apple_cc_toolchains")
register_toolchains("@local_config_apple_cc_toolchains//:all")
cc_configure = use_extension("@rules_cc//cc:extensions.bzl", "cc_configure_extension")
use_repo(cc_configure, "local_config_cc", "local_config_cc_toolchains")
register_toolchains("@local_config_cc_toolchains//:all")
rust = use_extension("@rules_rust//rust:extensions.bzl", "rust")
rust.toolchain(
edition = "2021",
extra_target_triples = [
"aarch64-apple-darwin",
"x86_64-apple-darwin",
],
)
use_repo(rust, "rust_toolchains")
register_toolchains("@rust_toolchains//:all")
crate = use_extension("@rules_rust//crate_universe:extension.bzl", "crate")
crate.from_cargo(
name = "crate_index",
cargo_lockfile = "//:Cargo.lock",
manifests = [
"//:Cargo.toml",
"//detox_auth:Cargo.toml",
"//detox_futures:Cargo.toml",
"//detox_hyper:Cargo.toml",
"//detox_net:Cargo.toml",
"//dnsdetox:Cargo.toml",
"//paceval:Cargo.toml",
"//paclib:Cargo.toml",
"//proxydetox:Cargo.toml",
"//proxydetoxlib:Cargo.toml",
"//spnego:Cargo.toml",
"//tools:Cargo.toml",
],
)
use_repo(crate, "crate_index")