Skip to content

Commit

Permalink
include wasi:random/insecure{_seed} in command::add_to_linker (#7614
Browse files Browse the repository at this point in the history
)

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 <joel.dice@fermyon.com>
  • Loading branch information
dicej authored Nov 30, 2023
1 parent 6f0da84 commit 584643a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/wasi/src/preview2/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ pub fn add_to_linker<T: WasiView>(l: &mut wasmtime::component::Linker<T>) -> 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)?;
Expand Down Expand Up @@ -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)?;
Expand Down

0 comments on commit 584643a

Please sign in to comment.