Skip to content

Commit e2f60d1

Browse files
committed
add wasmtime build files
Signed-off-by: mathetake <[email protected]>
1 parent 2a2b2ef commit e2f60d1

File tree

131 files changed

+9187
-13
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

131 files changed

+9187
-13
lines changed

WORKSPACE

Lines changed: 37 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,28 @@ load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
3131

3232
bazel_skylib_workspace()
3333

34+
# rust rules
35+
http_archive(
36+
name = "io_bazel_rules_rust",
37+
sha256 = "a9548f4d36082770e891149d68b17b7afe144b0b5321d603a5cb2c16027198ab",
38+
strip_prefix = "rules_rust-9c889b057ddf4feddae7c5ae6913b7282154aa24",
39+
url = "https://github.com/bazelbuild/rules_rust/archive/9c889b057ddf4feddae7c5ae6913b7282154aa24.tar.gz",
40+
)
41+
42+
load("@io_bazel_rules_rust//rust:repositories.bzl", "rust_repositories")
43+
44+
rust_repositories()
45+
46+
load("@io_bazel_rules_rust//:workspace.bzl", "bazel_version", "rust_workspace")
47+
48+
rust_workspace()
49+
50+
bazel_version(name = "bazel_version")
51+
52+
load("//bazel/cargo:crates.bzl", "raze_fetch_remote_crates")
53+
54+
raze_fetch_remote_crates()
55+
3456
git_repository(
3557
name = "com_google_protobuf",
3658
commit = "655310ca192a6e3a050e0ca0b7084a2968072260",
@@ -53,10 +75,21 @@ http_archive(
5375
)
5476

5577
http_archive(
56-
# TODO(@mathetake): use non-prebuild library, or download separate archives for each architecture
5778
name = "wasmtime",
5879
build_file = "//bazel/external:wasmtime.BUILD",
59-
sha256 = "fdbd6dbb58d15b3566abcc2c62ab18c348027e1620bc2ba0219017999504000e",
60-
strip_prefix = "wasmtime-v0.20.0-x86_64-linux-c-api",
61-
url = "https://github.com/bytecodealliance/wasmtime/releases/download/v0.20.0/wasmtime-v0.20.0-x86_64-linux-c-api.tar.xz",
80+
patch_args = ["-p1"],
81+
patches = [
82+
"//:bazel/patches/wasmtime-0.20.0-fix-include-path.diff",
83+
],
84+
sha256 = "feb29c96e053d16fe3dc91b93d7a28ab24b9c390fbdf2580547ae7fa0b8eae95",
85+
strip_prefix = "wasmtime-0.20.0",
86+
url = "https://github.com/bytecodealliance/wasmtime/archive/v0.20.0.tar.gz",
87+
)
88+
89+
http_archive(
90+
name = "wasm-c-api",
91+
build_file = "//bazel/external:wasm-c-api.BUILD",
92+
sha256 = "aea8cd095e9937f1e14f2c93e026317b197eb2345e7a817fe3932062eb7b792c",
93+
strip_prefix = "wasm-c-api-d9a80099d496b5cdba6f3fe8fc77586e0e505ddc",
94+
url = "https://github.com/WebAssembly/wasm-c-api/archive/d9a80099d496b5cdba6f3fe8fc77586e0e505ddc.tar.gz",
6295
)

bazel/cargo/BUILD.bazel

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
"""
2+
@generated
3+
cargo-raze workspace build file.
4+
5+
DO NOT EDIT! Replaced on runs of cargo-raze
6+
"""
7+
8+
package(default_visibility = ["//visibility:public"])
9+
10+
licenses([
11+
"notice", # See individual crates for specific licenses
12+
])
13+
14+
# Aliased targets
15+
alias(
16+
name = "anyhow",
17+
actual = "@raze__anyhow__1_0_33//:anyhow",
18+
tags = [
19+
"cargo-raze",
20+
"manual",
21+
],
22+
)
23+
24+
alias(
25+
name = "env_logger",
26+
actual = "@raze__env_logger__0_7_1//:env_logger",
27+
tags = [
28+
"cargo-raze",
29+
"manual",
30+
],
31+
)
32+
33+
alias(
34+
name = "indexmap",
35+
actual = "@raze__indexmap__1_1_0//:indexmap",
36+
tags = [
37+
"cargo-raze",
38+
"manual",
39+
],
40+
)
41+
42+
alias(
43+
name = "object",
44+
actual = "@raze__object__0_21_1//:object",
45+
tags = [
46+
"cargo-raze",
47+
"manual",
48+
],
49+
)
50+
51+
alias(
52+
name = "once_cell",
53+
actual = "@raze__once_cell__1_4_1//:once_cell",
54+
tags = [
55+
"cargo-raze",
56+
"manual",
57+
],
58+
)
59+
60+
alias(
61+
name = "wasmtime",
62+
actual = "@raze__wasmtime__0_20_0//:wasmtime",
63+
tags = [
64+
"cargo-raze",
65+
"manual",
66+
],
67+
)
68+
69+
alias(
70+
name = "wasmtime_c_api_macros",
71+
actual = "@raze__wasmtime_c_api_macros__0_19_0//:wasmtime_c_api_macros",
72+
tags = [
73+
"cargo-raze",
74+
"manual",
75+
],
76+
)
77+
78+
alias(
79+
name = "wat",
80+
actual = "@raze__wat__1_0_27//:wat",
81+
tags = [
82+
"cargo-raze",
83+
"manual",
84+
],
85+
)

0 commit comments

Comments
 (0)