Skip to content

Commit 1ba0e93

Browse files
authored
Update rules_rust to latest (with Rust v1.57.0). (#222)
Signed-off-by: Piotr Sikora <[email protected]>
1 parent 76e226d commit 1ba0e93

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

bazel/external/wasmtime.BUILD

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
load("@rules_cc//cc:defs.bzl", "cc_library")
2-
load("@rules_rust//rust:rust.bzl", "rust_library")
2+
load("@rules_rust//rust:defs.bzl", "rust_static_library")
33

44
licenses(["notice"]) # Apache 2
55

66
package(default_visibility = ["//visibility:public"])
77

8-
rust_library(
8+
rust_static_library(
99
name = "rust_c_api",
1010
srcs = glob(["crates/c-api/src/**/*.rs"]),
1111
crate_features = [],
1212
crate_root = "crates/c-api/src/lib.rs",
13-
crate_type = "staticlib",
1413
edition = "2018",
1514
proc_macro_deps = [
1615
"@proxy_wasm_cpp_host//bazel/cargo:wasmtime_c_api_macros",

bazel/repositories.bzl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ def proxy_wasm_cpp_host_repositories():
9090

9191
http_archive(
9292
name = "rules_rust",
93-
sha256 = "d195a85d38ee2dd7aecfedba6c9814a2ff22f968abac0818fd91e35c5b7aca6f",
94-
strip_prefix = "rules_rust-6f79458dee68d691d6a5aee67b06a620bdf9293f",
95-
url = "https://github.com/bazelbuild/rules_rust/archive/6f79458dee68d691d6a5aee67b06a620bdf9293f.tar.gz",
93+
sha256 = "8a2052e8ec707aa04a6b9e72bfc67fea44e915ecab1d2d0a4835ad51c2410c36",
94+
strip_prefix = "rules_rust-b16c26ba5faf1c58ebe94582afd20567ce676e6d",
95+
url = "https://github.com/bazelbuild/rules_rust/archive/b16c26ba5faf1c58ebe94582afd20567ce676e6d.tar.gz",
9696
)
9797

9898
http_archive(

bazel/wasm.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
load("@rules_rust//rust:rust.bzl", "rust_binary")
15+
load("@rules_rust//rust:defs.bzl", "rust_binary")
1616

1717
def _wasm_rust_transition_impl(settings, attr):
1818
return {

0 commit comments

Comments
 (0)