Skip to content

Commit

Permalink
Add wasm32 target for rust (risc0#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
flaub authored Apr 15, 2022
1 parent f4a2891 commit adf6cc3
Show file tree
Hide file tree
Showing 18 changed files with 2,732 additions and 48 deletions.
2 changes: 1 addition & 1 deletion .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ build --incompatible_enable_cc_toolchain_resolution
#build --toolchain_resolution_debug
build --flag_alias=accel=//risc0/zkp/accel:flag
build --//bazel/rules/clang_format:config=//:.clang-format
build --@rules_rust//:rustfmt.toml=//bazel/rules/rust:rustfmt.toml

build:cpu --accel=cpu

Expand All @@ -18,7 +19,6 @@ build:clang-tidy --build_tag_filters=-skip_clang_tidy

build:ci --aspects=@rules_rust//rust:defs.bzl%rustfmt_aspect,//bazel/rules/clang_format:defs.bzl%clang_format_aspect
build:ci --output_groups=+rustfmt_checks,+clang_format_checks
build:ci --@rules_rust//:rustfmt.toml=//bazel/rules/rust:rustfmt.toml

build:dbg -c dbg
build:dbg --strategy=ObjcLink=local
Expand Down
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
"[starlark]": {
"editor.formatOnSave": true
},
"files.eol": "\n"
"files.eol": "\n",
"git.ignoreLimitWarning": true
}
5 changes: 5 additions & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,8 @@ py_binary(
name = "clang-format",
srcs = ["clang-format.py"],
)

alias(
name = "rustfmt",
actual = "@rules_rust//:rustfmt",
)
28 changes: 14 additions & 14 deletions Cargo-host.Bazel.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"checksum": "cc839128cc1bfca37f09c63cde1cd0261024569dc598420f578f0267f4e6bd2e",
"checksum": "15827962b1dc14f8b4ccfed9ed10bdf07a244f34b122bccb609a517b97087050",
"crates": {
"aho-corasick 0.7.18": {
"name": "aho-corasick",
Expand Down Expand Up @@ -2582,7 +2582,7 @@
"target": "tower_service"
},
{
"id": "tracing 0.1.33",
"id": "tracing 0.1.34",
"target": "tracing"
},
{
Expand Down Expand Up @@ -5440,7 +5440,7 @@
"target": "tower_service"
},
{
"id": "tracing 0.1.33",
"id": "tracing 0.1.34",
"target": "tracing"
}
],
Expand Down Expand Up @@ -5605,13 +5605,13 @@
},
"license": "MIT"
},
"tracing 0.1.33": {
"tracing 0.1.34": {
"name": "tracing",
"version": "0.1.33",
"version": "0.1.34",
"repository": {
"Http": {
"url": "https://crates.io/api/v1/crates/tracing/0.1.33/download",
"sha256": "80b9fa4360528139bc96100c160b7ae879f5567f49f1782b0b02035b0358ebf3"
"url": "https://crates.io/api/v1/crates/tracing/0.1.34/download",
"sha256": "5d0ecdcb44a79f0fe9844f0c4f33a342cbcbb5117de8001e6ba0dc2351327d09"
}
},
"targets": [
Expand Down Expand Up @@ -5652,24 +5652,24 @@
"target": "pin_project_lite"
},
{
"id": "tracing-core 0.1.25",
"id": "tracing-core 0.1.26",
"target": "tracing_core"
}
],
"selects": {}
},
"edition": "2018",
"version": "0.1.33"
"version": "0.1.34"
},
"license": "MIT"
},
"tracing-core 0.1.25": {
"tracing-core 0.1.26": {
"name": "tracing-core",
"version": "0.1.25",
"version": "0.1.26",
"repository": {
"Http": {
"url": "https://crates.io/api/v1/crates/tracing-core/0.1.25/download",
"sha256": "6dfce9f3241b150f36e8e54bb561a742d5daa1a47b5dd9a5ce369fd4a4db2210"
"url": "https://crates.io/api/v1/crates/tracing-core/0.1.26/download",
"sha256": "f54c8ca710e81886d498c2fd3331b56c93aa248d49de2222ad2742247c60072f"
}
},
"targets": [
Expand Down Expand Up @@ -5705,7 +5705,7 @@
"selects": {}
},
"edition": "2018",
"version": "0.1.25"
"version": "0.1.26"
},
"license": "MIT"
},
Expand Down
Loading

0 comments on commit adf6cc3

Please sign in to comment.