Skip to content
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
02ad075
time: add `ignore-wasm` to failing wasm tests
lblack00 Aug 16, 2025
12e4572
task: add `ignore-wasm` to failing wasm tests
lblack00 Aug 16, 2025
3dfbeb3
sync: add `ignore-wasm` to failing wasm tests
lblack00 Aug 16, 2025
94c0796
runtime: add `ignore-wasm` to failing wasm tests
lblack00 Aug 16, 2025
92cb650
tokio|io|macros: add remaining `ignore-wasm` to failing doctests
lblack00 Aug 16, 2025
5a37a0b
ci: unpin rust version for wasm tests
lblack00 Aug 16, 2025
9a1484e
ci: update cfgs for WASI test tokio
lblack00 Aug 23, 2025
ab2a5f5
tokio|tokio-stream|tokio-util - ignore failing wasm tests
lblack00 Aug 23, 2025
6eaff54
Merge branch 'master' into ignore-failed-time-wasm-tests
lblack00 Aug 23, 2025
6dc771d
test: revert changes to `macros_type_mismatch.stderr`
lblack00 Aug 23, 2025
5bf9656
stream: revert annotations and utilize `futures::executor::block_on`
lblack00 Sep 2, 2025
e0762b6
ci|tokio: add `RUSTDOCFLAGS` and ignore subsequently failed tests
lblack00 Sep 3, 2025
2ea3529
stream: use `current_thread` flavor instead of `futures::executor::bl…
lblack00 Sep 3, 2025
f0df0a1
stream|util: revert and update `util` and `stream` annotations
lblack00 Sep 5, 2025
58f199e
util: lower memory allocated for `sync_bridge.rs` doctest
lblack00 Sep 5, 2025
8e453ba
revert most annotations and re-enable tests, overhaul formatting
lblack00 Sep 9, 2025
5ada932
add back annotations to conflicting test failures
lblack00 Sep 10, 2025
c7dc325
Merge branch 'master' into ignore-failed-time-wasm-tests
lblack00 Sep 11, 2025
a86c483
minor inconsistencies in formatting
lblack00 Sep 11, 2025
82afcd2
partially enable tests with conditional compilation
lblack00 Sep 22, 2025
8c7c68e
merge master
lblack00 Sep 22, 2025
6b5c4ee
partially enable `sync::oneshot::Receiver<T>::blocking_recv` test
lblack00 Sep 25, 2025
34ee661
Merge branch 'master' into ignore-failed-time-wasm-tests
lblack00 Sep 25, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1055,10 +1055,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Install Rust 1.88.0
- name: Install Rust ${{ env.rust_stable }}
uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.88.0
toolchain: ${{ env.rust_stable }}
- name: Install wasm-pack
uses: taiki-e/install-action@wasm-pack

Expand All @@ -1078,10 +1078,10 @@ jobs:
- wasm32-wasip1-threads
steps:
- uses: actions/checkout@v4
- name: Install Rust 1.88.0
- name: Install Rust ${{ env.rust_stable }}
uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.88.0
toolchain: ${{ env.rust_stable }}
targets: ${{ matrix.target }}

# Install dependencies
Expand All @@ -1092,7 +1092,7 @@ jobs:

- uses: Swatinem/rust-cache@v2
- name: WASI test tokio full
run: cargo test -p tokio --target ${{ matrix.target }} --features full
run: cargo test -p tokio --target ${{ matrix.target }} --features "sync,macros,io-util,rt,time"
env:
CARGO_TARGET_WASM32_WASIP1_RUNNER: "wasmtime run --"
CARGO_TARGET_WASM32_WASIP1_THREADS_RUNNER: "wasmtime run -W bulk-memory=y -W threads=y -S threads=y --"
Expand Down
2 changes: 1 addition & 1 deletion tokio-stream/src/empty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ unsafe impl<T> Sync for Empty<T> {}
///
/// Basic usage:
///
/// ```
/// ```ignore-wasm
/// use tokio_stream::{self as stream, StreamExt};
///
/// #[tokio::main]
Expand Down
2 changes: 1 addition & 1 deletion tokio-stream/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
//! `Stream`, but this is unfortunately not possible. Instead, you can use a
//! `while let` loop as follows:
//!
//! ```rust
//! ```rust,ignore-wasm
//! use tokio_stream::{self as stream, StreamExt};
//!
//! #[tokio::main]
Expand Down
2 changes: 1 addition & 1 deletion tokio-stream/src/once.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ impl<I> Unpin for Once<I> {}
///
/// # Examples
///
/// ```
/// ```ignore-wasm
/// use tokio_stream::{self as stream, StreamExt};
///
/// #[tokio::main]
Expand Down
2 changes: 1 addition & 1 deletion tokio-stream/src/stream_close.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pin_project! {
///
/// Using `StreamNotifyClose` to handle closed streams with `StreamMap`.
///
/// ```
/// ```ignore-wasm
/// use tokio_stream::{StreamExt, StreamMap, StreamNotifyClose};
///
/// #[tokio::main]
Expand Down
44 changes: 22 additions & 22 deletions tokio-stream/src/stream_ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ pub trait StreamExt: Stream {
///
/// # Examples
///
/// ```
/// ```ignore-wasm
/// # #[tokio::main]
/// # async fn main() {
/// use tokio_stream::{self as stream, StreamExt};
Expand Down Expand Up @@ -170,7 +170,7 @@ pub trait StreamExt: Stream {
///
/// # Examples
///
/// ```
/// ```ignore-wasm
/// # #[tokio::main]
/// # async fn main() {
/// use tokio_stream::{self as stream, StreamExt};
Expand Down Expand Up @@ -202,7 +202,7 @@ pub trait StreamExt: Stream {
///
/// # Examples
///
/// ```
/// ```ignore-wasm
/// # #[tokio::main]
/// # async fn main() {
/// use tokio_stream::{self as stream, StreamExt};
Expand Down Expand Up @@ -238,7 +238,7 @@ pub trait StreamExt: Stream {
///
/// # Examples
///
/// ```
/// ```ignore-wasm
/// # #[tokio::main]
/// # async fn main() {
/// use tokio_stream::{self as stream, StreamExt};
Expand Down Expand Up @@ -282,7 +282,7 @@ pub trait StreamExt: Stream {
///
/// # Examples
///
/// ```
/// ```ignore-wasm
/// # #[tokio::main]
/// # async fn main() {
/// use tokio_stream::{self as stream, StreamExt};
Expand Down Expand Up @@ -417,7 +417,7 @@ pub trait StreamExt: Stream {
///
/// # Examples
///
/// ```
/// ```ignore-wasm
/// # #[tokio::main]
/// # async fn main() {
/// use tokio_stream::{self as stream, StreamExt};
Expand Down Expand Up @@ -453,7 +453,7 @@ pub trait StreamExt: Stream {
/// standard library.
///
/// # Examples
/// ```
/// ```ignore-wasm
/// # #[tokio::main]
/// # async fn main() {
/// use tokio_stream::{self as stream, StreamExt};
Expand Down Expand Up @@ -487,7 +487,7 @@ pub trait StreamExt: Stream {
///
/// # Examples
///
/// ```
/// ```ignore-wasm
/// use tokio_stream::{Stream, StreamExt};
///
/// use std::pin::Pin;
Expand Down Expand Up @@ -550,7 +550,7 @@ pub trait StreamExt: Stream {
///
/// # Examples
///
/// ```
/// ```ignore-wasm
/// # #[tokio::main]
/// # async fn main() {
/// use tokio_stream::{self as stream, StreamExt};
Expand Down Expand Up @@ -579,7 +579,7 @@ pub trait StreamExt: Stream {
///
/// # Examples
///
/// ```
/// ```ignore-wasm
/// # #[tokio::main]
/// # async fn main() {
/// use tokio_stream::{self as stream, StreamExt};
Expand All @@ -605,7 +605,7 @@ pub trait StreamExt: Stream {
///
/// # Examples
///
/// ```
/// ```ignore-wasm
/// # #[tokio::main]
/// # async fn main() {
/// use tokio_stream::{self as stream, StreamExt};
Expand Down Expand Up @@ -636,7 +636,7 @@ pub trait StreamExt: Stream {
///
/// # Examples
///
/// ```
/// ```ignore-wasm
/// # #[tokio::main]
/// # async fn main() {
/// use tokio_stream::{self as stream, StreamExt};
Expand Down Expand Up @@ -679,7 +679,7 @@ pub trait StreamExt: Stream {
///
/// Basic usage:
///
/// ```
/// ```ignore-wasm
/// # #[tokio::main]
/// # async fn main() {
/// use tokio_stream::{self as stream, StreamExt};
Expand All @@ -694,7 +694,7 @@ pub trait StreamExt: Stream {
///
/// Stopping at the first `false`:
///
/// ```
/// ```ignore-wasm
/// # #[tokio::main]
/// # async fn main() {
/// use tokio_stream::{self as stream, StreamExt};
Expand Down Expand Up @@ -738,7 +738,7 @@ pub trait StreamExt: Stream {
///
/// Basic usage:
///
/// ```
/// ```ignore-wasm
/// # #[tokio::main]
/// # async fn main() {
/// use tokio_stream::{self as stream, StreamExt};
Expand All @@ -753,7 +753,7 @@ pub trait StreamExt: Stream {
///
/// Stopping at the first `true`:
///
/// ```
/// ```ignore-wasm
/// # #[tokio::main]
/// # async fn main() {
/// use tokio_stream::{self as stream, StreamExt};
Expand Down Expand Up @@ -784,7 +784,7 @@ pub trait StreamExt: Stream {
///
/// # Examples
///
/// ```
/// ```ignore-wasm
/// use tokio_stream::{self as stream, StreamExt};
///
/// #[tokio::main]
Expand Down Expand Up @@ -822,7 +822,7 @@ pub trait StreamExt: Stream {
///
/// # Examples
/// Basic usage:
/// ```
/// ```ignore-wasm
/// # #[tokio::main]
/// # async fn main() {
/// use tokio_stream::{self as stream, *};
Expand Down Expand Up @@ -871,7 +871,7 @@ pub trait StreamExt: Stream {
///
/// Basic usage:
///
/// ```
/// ```ignore-wasm
/// use tokio_stream::{self as stream, StreamExt};
///
/// #[tokio::main]
Expand All @@ -888,7 +888,7 @@ pub trait StreamExt: Stream {
///
/// Collecting a stream of `Result` values
///
/// ```
/// ```ignore-wasm
/// use tokio_stream::{self as stream, StreamExt};
///
/// #[tokio::main]
Expand Down Expand Up @@ -944,7 +944,7 @@ pub trait StreamExt: Stream {
///
/// Suppose we have a stream `int_stream` that yields 3 numbers (1, 2, 3):
///
/// ```
/// ```ignore-wasm
/// # #[tokio::main]
/// # async fn main() {
/// use tokio_stream::{self as stream, StreamExt};
Expand Down Expand Up @@ -1030,7 +1030,7 @@ pub trait StreamExt: Stream {
///
/// Suppose we have a stream `int_stream` that yields 3 numbers (1, 2, 3):
///
/// ```
/// ```ignore-wasm
/// # #[tokio::main]
/// # async fn main() {
/// use tokio_stream::{self as stream, StreamExt};
Expand Down
4 changes: 2 additions & 2 deletions tokio-stream/src/stream_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ use std::task::{ready, Context, Poll};
///
/// Merging two streams, then remove them after receiving the first value
///
/// ```
/// ```ignore-wasm
/// use tokio_stream::{StreamExt, StreamMap, Stream};
/// use tokio::sync::mpsc;
/// use std::pin::Pin;
Expand Down Expand Up @@ -182,7 +182,7 @@ use std::task::{ready, Context, Poll};
///
/// Using `StreamNotifyClose` to handle closed streams with `StreamMap`.
///
/// ```
/// ```ignore-wasm
/// use tokio_stream::{StreamExt, StreamMap, StreamNotifyClose};
///
/// #[tokio::main]
Expand Down
2 changes: 1 addition & 1 deletion tokio-stream/src/wrappers/tcp_listener.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use tokio::net::{TcpListener, TcpStream};
///
/// Accept connections from both IPv4 and IPv6 listeners in the same loop:
///
/// ```no_run
/// ```no_run,ignore-wasm
/// use std::net::{Ipv4Addr, Ipv6Addr};
///
/// use tokio::net::TcpListener;
Expand Down
6 changes: 3 additions & 3 deletions tokio-stream/src/wrappers/watch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use tokio::sync::watch::error::RecvError;
///
/// # Examples
///
/// ```
/// ```ignore-wasm
/// # #[tokio::main]
/// # async fn main() {
/// use tokio_stream::{StreamExt, wrappers::WatchStream};
Expand All @@ -32,7 +32,7 @@ use tokio::sync::watch::error::RecvError;
/// # }
/// ```
///
/// ```
/// ```ignore-wasm
/// # #[tokio::main]
/// # async fn main() {
/// use tokio_stream::{StreamExt, wrappers::WatchStream};
Expand All @@ -50,7 +50,7 @@ use tokio::sync::watch::error::RecvError;
///
/// Example with [`WatchStream<T>::from_changes`]:
///
/// ```
/// ```ignore-wasm
/// # #[tokio::main]
/// # async fn main() {
/// use futures::future::FutureExt;
Expand Down
14 changes: 7 additions & 7 deletions tokio-util/src/codec/length_delimited.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
//! The following will parse a `u16` length field at offset 0, omitting the
//! frame head in the yielded `BytesMut`.
//!
//! ```
//! ```ignore-wasm
//! # use tokio_stream::StreamExt;
//! # use tokio_util::codec::LengthDelimitedCodec;
//! # #[tokio::main]
Expand Down Expand Up @@ -114,7 +114,7 @@
//! The following will parse a `u16` length field at offset 0, including the
//! frame head in the yielded `BytesMut`.
//!
//! ```
//! ```ignore-wasm
//! # use tokio_stream::StreamExt;
//! # use tokio_util::codec::LengthDelimitedCodec;
//! # #[tokio::main]
Expand Down Expand Up @@ -151,7 +151,7 @@
//! frame head in the yielded `BytesMut`. In this case, the length field
//! **includes** the frame head length.
//!
//! ```
//! ```ignore-wasm
//! # use tokio_stream::StreamExt;
//! # use tokio_util::codec::LengthDelimitedCodec;
//! # #[tokio::main]
Expand Down Expand Up @@ -187,7 +187,7 @@
//! The following will parse a 3 byte length field at offset 0 in a 5 byte
//! frame head, including the frame head in the yielded `BytesMut`.
//!
//! ```
//! ```ignore-wasm
//! # use tokio_stream::StreamExt;
//! # use tokio_util::codec::LengthDelimitedCodec;
//! # #[tokio::main]
Expand Down Expand Up @@ -234,7 +234,7 @@
//! yielded `BytesMut`, but the trailing 2 bytes of the frame head will be
//! included.
//!
//! ```
//! ```ignore-wasm
//! # use tokio_stream::StreamExt;
//! # use tokio_util::codec::LengthDelimitedCodec;
//! # #[tokio::main]
Expand Down Expand Up @@ -283,7 +283,7 @@
//! included. In this case, the length field **includes** the frame head
//! length.
//!
//! ```
//! ```ignore-wasm
//! # use tokio_stream::StreamExt;
//! # use tokio_util::codec::LengthDelimitedCodec;
//! # #[tokio::main]
Expand Down Expand Up @@ -326,7 +326,7 @@
//! The following will parse a 3 byte length field at offset 0 in a 4 byte
//! frame head, excluding the 4th byte from the yielded `BytesMut`.
//!
//! ```
//! ```ignore-wasm
//! # use tokio_stream::StreamExt;
//! # use tokio_util::codec::LengthDelimitedCodec;
//! # #[tokio::main]
Expand Down
Loading
Loading