Skip to content

Commit 37c402f

Browse files
authored
Upgrade to the latest version of witx (#56)
1 parent be37cfd commit 37c402f

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

crates/witx-bindgen/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ description = "Utility to turn witx files into Rust source code bindings"
88

99
[dependencies]
1010
heck = "0.3"
11-
witx = { path = "WASI/tools/witx", version = "0.8.7" }
11+
witx = { path = "WASI/tools/witx", version = "0.8.8" }
1212
cfg-if = "0.1"
1313

1414
[features]

crates/witx-bindgen/WASI

Submodule WASI updated 55 files

src/lib_generated.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,8 +1044,8 @@ pub unsafe fn fd_read(fd: Fd, iovs: IovecArray<'_>) -> Result<Size> {
10441044

10451045
/// Read directory entries from a directory.
10461046
/// When successful, the contents of the output buffer consist of a sequence of
1047-
/// directory entries. Each directory entry consists of a dirent_t object,
1048-
/// followed by dirent_t::d_namlen bytes holding the name of the directory
1047+
/// directory entries. Each directory entry consists of a `dirent` object,
1048+
/// followed by `dirent::d_namlen` bytes holding the name of the directory
10491049
/// entry.
10501050
/// This function fills the output buffer as much as possible, potentially
10511051
/// truncating the last directory entry. This allows the caller to grow its
@@ -1298,7 +1298,7 @@ pub unsafe fn path_open(
12981298
path: &str,
12991299
oflags: Oflags,
13001300
fs_rights_base: Rights,
1301-
fs_rights_inherting: Rights,
1301+
fs_rights_inheriting: Rights,
13021302
fdflags: Fdflags,
13031303
) -> Result<Fd> {
13041304
let mut opened_fd = MaybeUninit::uninit();
@@ -1309,7 +1309,7 @@ pub unsafe fn path_open(
13091309
path.len(),
13101310
oflags,
13111311
fs_rights_base,
1312-
fs_rights_inherting,
1312+
fs_rights_inheriting,
13131313
fdflags,
13141314
opened_fd.as_mut_ptr(),
13151315
);
@@ -1672,8 +1672,8 @@ pub mod wasi_snapshot_preview1 {
16721672
pub fn fd_read(fd: Fd, iovs_ptr: *const Iovec, iovs_len: usize, nread: *mut Size) -> Errno;
16731673
/// Read directory entries from a directory.
16741674
/// When successful, the contents of the output buffer consist of a sequence of
1675-
/// directory entries. Each directory entry consists of a dirent_t object,
1676-
/// followed by dirent_t::d_namlen bytes holding the name of the directory
1675+
/// directory entries. Each directory entry consists of a `dirent` object,
1676+
/// followed by `dirent::d_namlen` bytes holding the name of the directory
16771677
/// entry.
16781678
/// This function fills the output buffer as much as possible, potentially
16791679
/// truncating the last directory entry. This allows the caller to grow its
@@ -1765,7 +1765,7 @@ pub mod wasi_snapshot_preview1 {
17651765
path_len: usize,
17661766
oflags: Oflags,
17671767
fs_rights_base: Rights,
1768-
fs_rights_inherting: Rights,
1768+
fs_rights_inheriting: Rights,
17691769
fdflags: Fdflags,
17701770
opened_fd: *mut Fd,
17711771
) -> Errno;

0 commit comments

Comments
 (0)