Skip to content

Commit aa7506b

Browse files
committed
doc: move some of the p2 comments to top-level
Signed-off-by: Roman Volosatovs <[email protected]>
1 parent 6b47803 commit aa7506b

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

crates/wasi/src/lib.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
22
#![expect(clippy::allow_attributes_without_reason, reason = "crate not migrated")]
33

4+
//! # Wasmtime's WASIp2 Implementation
5+
//!
6+
//! This crate provides a Wasmtime host implementations of different versions of WASI.
7+
//! WASI is implemented with the Rust crates [`tokio`] and [`cap-std`](cap_std) primarily, meaning that
8+
//! operations are implemented in terms of their native platform equivalents by
9+
//! default.
10+
//!
11+
//! For components and WASIp2, see [`p2`].
12+
//! For WASIp1 and core modules, see the [`preview1`] module documentation.
13+
414
mod clocks;
515
mod error;
616
mod filesystem;

crates/wasi/src/p2/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
//! operations are implemented in terms of their native platform equivalents by
88
//! default.
99
//!
10-
//! For components and WASIp2, continue reading below. For WASIp1 and core
11-
//! modules, see the [`preview1`](crate::preview1) module documentation.
12-
//!
1310
//! # WASIp2 interfaces
1411
//!
1512
//! This module contains implementations of the following interfaces:

0 commit comments

Comments
 (0)