-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathWORKSPACE.bazel
More file actions
110 lines (86 loc) · 3.28 KB
/
Copy pathWORKSPACE.bazel
File metadata and controls
110 lines (86 loc) · 3.28 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository")
load("//bazel:didc_repo.bzl", "didc_repository")
http_archive(
name = "rules_motoko",
sha256 = "9b677fc5d3b42749d13b7734b3a87d4d40135499a189e843ae3f183965e255b7",
strip_prefix = "rules_motoko-0.1.0",
urls = ["https://github.com/dfinity/rules_motoko/archive/refs/tags/v0.1.0.zip"],
)
http_archive(
name = "motoko_base",
build_file_content = """
filegroup(name = "sources", srcs = glob(["*.mo"]), visibility = ["//visibility:public"])
""",
sha256 = "582d1c90faa65047354ae7530f09160dd7e04882991287ced7ea7a72bd89d06e",
strip_prefix = "motoko-base-moc-0.6.24/src",
urls = ["https://github.com/dfinity/motoko-base/archive/refs/tags/moc-0.6.24.zip"],
)
load("@rules_motoko//motoko:repositories.bzl", "rules_motoko_dependencies")
rules_motoko_dependencies()
http_archive(
name = "io_bazel_rules_go",
sha256 = "f4a9314518ca6acfa16cc4ab43b0b8ce1e4ea64b81c38d8a3772883f153346b8",
urls = ["https://github.com/bazelbuild/rules_go/releases/download/v0.50.1/rules_go-v0.50.1.zip"],
)
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
go_rules_dependencies()
go_register_toolchains(version = "1.18.4")
new_git_repository(
name = "lmt",
build_file_content = """
load("@io_bazel_rules_go//go:def.bzl", "go_binary")
go_binary(
name = "lmt",
srcs = ["main.go"],
visibility = ["//visibility:public"],
)
""",
commit = "62fe18f2f6a6e11c158ff2b2209e1082a4fcd59c",
remote = "https://github.com/driusan/lmt",
shallow_since = "1619009341 -0400",
)
didc_repository(name = "didc")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
integrity = "sha256-2GH766nwQzOgrmnkSO6D1pF/JC3bt/41xo/CEqarpUY=",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.64.0/rules_rust-0.64.0.tar.gz"],
)
load("@rules_rust//crate_universe:repositories.bzl", "crate_universe_dependencies")
load("@rules_rust//rust:repositories.bzl", "rules_rust_dependencies", "rust_register_toolchains")
load("@rules_rust//tools/rust_analyzer:deps.bzl", "rust_analyzer_dependencies")
rules_rust_dependencies()
rust_analyzer_dependencies()
crate_universe_dependencies()
rust_register_toolchains(
edition = "2021",
versions = ["1.85.0"],
)
load("@rules_rust//crate_universe:defs.bzl", "crates_repository")
crates_repository(
name = "crate_index",
cargo_lockfile = "//:Cargo.lock",
lockfile = "//:Cargo.Bazel.lock",
manifests = [
"//:Cargo.toml",
"//test/env:Cargo.toml",
"//test/env/replica:Cargo.toml",
"//test/env/pocket-ic:Cargo.toml",
"//test/suite:Cargo.toml",
"//test/runner:Cargo.toml",
"//test/replica:Cargo.toml",
],
supported_platform_triples = [
"aarch64-apple-darwin",
"aarch64-unknown-linux-gnu",
"x86_64-apple-darwin",
"x86_64-pc-windows-msvc",
"x86_64-unknown-linux-gnu",
"wasm32-unknown-unknown",
],
)
load("@crate_index//:defs.bzl", "crate_repositories")
crate_repositories()
load("//bazel:replica_tools.bzl", "replica_tools_repository")
replica_tools_repository(name = "replica_tools")