Skip to content

Commit cf68886

Browse files
authored
Make some WASI types public (#11593)
If these are private it's impossible to implement a version of `add_to_linker()` that only pulls in some of this WASI implementation (e.g if you want to provide a custom implementation of some parts of it).
1 parent 60ba85b commit cf68886

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

crates/wasi/src/cli.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub use self::locked_async::{AsyncStdinStream, AsyncStdoutStream};
2020
#[doc(no_inline)]
2121
pub use tokio::io::{Stderr, Stdin, Stdout, stderr, stdin, stdout};
2222

23-
pub(crate) struct WasiCli;
23+
pub struct WasiCli;
2424

2525
impl HasData for WasiCli {
2626
type Data<'a> = WasiCliCtxView<'a>;

crates/wasi/src/clocks.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use cap_std::{AmbientAuthority, ambient_authority};
33
use cap_time_ext::{MonotonicClockExt as _, SystemClockExt as _};
44
use wasmtime::component::{HasData, ResourceTable};
55

6-
pub(crate) struct WasiClocks;
6+
pub struct WasiClocks;
77

88
impl HasData for WasiClocks {
99
type Data<'a> = WasiClocksCtxView<'a>;

crates/wasi/src/filesystem.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use std::sync::Arc;
88
use tracing::debug;
99
use wasmtime::component::{HasData, Resource, ResourceTable};
1010

11-
pub(crate) struct WasiFilesystem;
11+
pub struct WasiFilesystem;
1212

1313
impl HasData for WasiFilesystem {
1414
type Data<'a> = WasiFilesystemCtxView<'a>;

crates/wasi/src/random.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use cap_rand::{Rng as _, RngCore, SeedableRng as _};
22
use wasmtime::component::HasData;
33

4-
pub(crate) struct WasiRandom;
4+
pub struct WasiRandom;
55

66
impl HasData for WasiRandom {
77
type Data<'a> = &'a mut WasiRandomCtx;

crates/wasi/src/sockets/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pub(crate) use tcp::NonInheritedOptions;
1414
pub use tcp::TcpSocket;
1515
pub use udp::UdpSocket;
1616

17-
pub(crate) struct WasiSockets;
17+
pub struct WasiSockets;
1818

1919
impl HasData for WasiSockets {
2020
type Data<'a> = WasiSocketsCtxView<'a>;

0 commit comments

Comments
 (0)