From 584643a35698e93e70d96526e3c58521ad6ed21e Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Thu, 30 Nov 2023 09:07:46 -0700 Subject: [PATCH] include `wasi:random/insecure{_seed}` in `command::add_to_linker` (#7614) I believe these were omitted by mistake. TODO: We should definitely use the `wasmtime-wit-bindgen`-generated `add_to_linker` function for the `command` world if possible, which would avoid such mistakes in the future. Signed-off-by: Joel Dice --- crates/wasi/src/preview2/command.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/wasi/src/preview2/command.rs b/crates/wasi/src/preview2/command.rs index 6ff304b24b12..3a4683146b38 100644 --- a/crates/wasi/src/preview2/command.rs +++ b/crates/wasi/src/preview2/command.rs @@ -35,6 +35,8 @@ pub fn add_to_linker(l: &mut wasmtime::component::Linker) -> any crate::preview2::bindings::io::poll::add_to_linker(l, |t| t)?; crate::preview2::bindings::io::streams::add_to_linker(l, |t| t)?; crate::preview2::bindings::random::random::add_to_linker(l, |t| t)?; + crate::preview2::bindings::random::insecure::add_to_linker(l, |t| t)?; + crate::preview2::bindings::random::insecure_seed::add_to_linker(l, |t| t)?; crate::preview2::bindings::cli::exit::add_to_linker(l, |t| t)?; crate::preview2::bindings::cli::environment::add_to_linker(l, |t| t)?; crate::preview2::bindings::cli::stdin::add_to_linker(l, |t| t)?; @@ -96,6 +98,8 @@ pub mod sync { crate::preview2::bindings::sync_io::io::poll::add_to_linker(l, |t| t)?; crate::preview2::bindings::sync_io::io::streams::add_to_linker(l, |t| t)?; crate::preview2::bindings::random::random::add_to_linker(l, |t| t)?; + crate::preview2::bindings::random::insecure::add_to_linker(l, |t| t)?; + crate::preview2::bindings::random::insecure_seed::add_to_linker(l, |t| t)?; crate::preview2::bindings::cli::exit::add_to_linker(l, |t| t)?; crate::preview2::bindings::cli::environment::add_to_linker(l, |t| t)?; crate::preview2::bindings::cli::stdin::add_to_linker(l, |t| t)?;