Skip to content

Commit c51f649

Browse files
committed
wasmtime: fix missing std feature in log crate
Signed-off-by: Matt Leon <mattleon@google.com>
1 parent ec68d96 commit c51f649

5 files changed

Lines changed: 20 additions & 0 deletions

File tree

bazel/cargo/wasmtime/Cargo.Bazel.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1448,6 +1448,7 @@ dependencies = [
14481448
name = "wasmtime-c-api-bazel"
14491449
version = "39.0.1"
14501450
dependencies = [
1451+
"log",
14511452
"wasmtime-c-api-impl",
14521453
]
14531454

bazel/cargo/wasmtime/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ version = "39.0.1"
2121
path = "fake_lib.rs"
2222

2323
[dependencies]
24+
# Fixes testdata build error due to missing crate_features = ["std"]
25+
log = {version = "0.4.29", default-features = false, features = ['std']}
2426
# IMPORTANT NOTE: prefixed linking of wasmtime requires changing the generated
2527
# file to specify `rust_static_library` instead of `rust_library`. The
2628
# following sed command will do it for you:

bazel/cargo/wasmtime/remote/BUILD.bazel

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,18 @@ filegroup(
3131
)
3232

3333
# Workspace Member Dependencies
34+
alias(
35+
name = "log-0.4.29",
36+
actual = "@cu__log-0.4.29//:log",
37+
tags = ["manual"],
38+
)
39+
40+
alias(
41+
name = "log",
42+
actual = "@cu__log-0.4.29//:log",
43+
tags = ["manual"],
44+
)
45+
3446
alias(
3547
name = "wasmtime-c-api-impl-39.0.1",
3648
actual = "@cu__wasmtime-c-api-impl-39.0.1//:wasmtime_c_api",

bazel/cargo/wasmtime/remote/BUILD.log-0.4.29.bazel

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ rust_library(
3434
"WORKSPACE.bazel",
3535
],
3636
),
37+
crate_features = [
38+
"std",
39+
],
3740
crate_root = "src/lib.rs",
3841
edition = "2021",
3942
rustc_env_files = [

bazel/cargo/wasmtime/remote/defs.bzl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ def aliases(
295295
_NORMAL_DEPENDENCIES = {
296296
"bazel/cargo/wasmtime": {
297297
_COMMON_CONDITION: {
298+
"log": Label("@cu//:log-0.4.29"),
298299
"wasmtime-c-api-impl": Label("@cu//:wasmtime-c-api-impl-39.0.1"),
299300
},
300301
},
@@ -2609,5 +2610,6 @@ def crate_repositories():
26092610
)
26102611

26112612
return [
2613+
struct(repo = "cu__log-0.4.29", is_dev_dep = False),
26122614
struct(repo = "cu__wasmtime-c-api-impl-39.0.1", is_dev_dep = False),
26132615
]

0 commit comments

Comments
 (0)