Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 31 additions & 31 deletions MODULE.bazel.lock

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions rust/rust_wasm_component_bindgen.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,13 @@ pub mod wit_bindgen {
}
}
}

// Bitflags module for WASI interfaces
pub mod bitflags {
// Re-export bitflags macro without #[macro_export]
// Generated code expects: crate::wit_bindgen::rt::bitflags::bitflags!
pub(crate) use bitflags;
}
}
}

Expand Down Expand Up @@ -244,6 +251,13 @@ pub mod wit_bindgen {
}
}
}

// Bitflags module for WASI interfaces
pub mod bitflags {
// Re-export bitflags macro without #[macro_export]
// Generated code expects: crate::wit_bindgen::rt::bitflags::bitflags!
pub(crate) use bitflags;
}
}
}

Expand Down Expand Up @@ -498,6 +512,7 @@ def rust_wasm_component_bindgen(
srcs = [":" + wrapper_native_guest_target],
crate_name = name.replace("-", "_") + "_bindings",
edition = "2021",
deps = ["@crates//:bitflags"], # Required for WASI filesystem interfaces
visibility = visibility, # Make native bindings publicly available
)

Expand All @@ -508,6 +523,7 @@ def rust_wasm_component_bindgen(
srcs = [":" + wrapper_guest_target],
crate_name = name.replace("-", "_") + "_bindings",
edition = "2021",
deps = ["@crates//:bitflags"], # Required for WASI filesystem interfaces
visibility = ["//visibility:private"],
)

Expand Down
5 changes: 3 additions & 2 deletions tools/checksum_updater/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions tools/checksum_updater/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ tempfile = "3.23"
async-trait = "0.1"
wit-bindgen = "0.46.0" # WIT binding generation for macro usage (MUST match CLI version in wasm_toolchain.bzl)
uuid = { version = "1.18", default-features = false } # UUID generation for user service (deterministic, no getrandom dependency)
bitflags = "2.6" # Bitflags for WASI filesystem interfaces in generated bindings

[dev-dependencies]
tokio-test = "0.4"
Expand Down
Loading