diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6d6eed82b..cc98f9b94 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -103,7 +103,7 @@ jobs: with: components: clippy - name: Clippy - run: cargo clippy --all-targets --all-features -- --allow clippy::mixed-attributes-style --allow clippy::unused-io-amount -D warnings + run: cargo clippy --all-targets --all-features -- --allow clippy::mixed-attributes-style --allow clippy::unused-io-amount --allow clippy::needless-lifetimes -D warnings Docs: runs-on: ubuntu-latest timeout-minutes: 10 @@ -135,7 +135,8 @@ jobs: - aarch64-apple-darwin - aarch64-apple-ios - aarch64-apple-tvos - - aarch64-apple-visionos + # Can't build standard library. + #- aarch64-apple-visionos - aarch64-apple-watchos - aarch64-linux-android - aarch64-unknown-freebsd @@ -151,11 +152,12 @@ jobs: - arm64_32-apple-watchos - armv7-sony-vita-newlibeabihf - i686-unknown-linux-gnu - - i686-unknown-hurd-gnu + # TODO: reenable . + #- i686-unknown-hurd-gnu # - powerpc64-ibm-aix Enable CI runs once aix has full stdlib upstreamed - riscv32imc-esp-espidf - sparcv9-sun-solaris - - wasm32-wasi + - wasm32-wasip1 - x86_64-apple-darwin - x86_64-apple-ios - x86_64-pc-nto-qnx710 diff --git a/CHANGELOG.md b/CHANGELOG.md index 7e350c248..91a81a270 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ +# 1.0.3 + +* Implement more I/O safety traits + (https://github.com/tokio-rs/mio/pull/1831). +* Remove hermit-abi dependency, now using libc + (https://github.com/tokio-rs/mio/pull/1830). +* Use `poll(2)` implementation on AIX, removing the need for using + `mio_unsupported_force_poll_poll` + (https://github.com/tokio-rs/mio/pull/1833). + # 1.0.2 * Work around eventfd bug on illumos diff --git a/Cargo.toml b/Cargo.toml index e2f924e84..d63c61d48 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,7 @@ name = "mio" # When releasing to crates.io: # - Update CHANGELOG.md. # - Create git tag -version = "1.0.2" +version = "1.0.3" license = "MIT" authors = [ "Carl Lerche ", diff --git a/tests/tcp.rs b/tests/tcp.rs index 824a3b1d0..ca70938dc 100644 --- a/tests/tcp.rs +++ b/tests/tcp.rs @@ -205,12 +205,8 @@ fn read() { for event in &events { assert_eq!(event.token(), Token(1)); let mut buf = [0; 1024]; - loop { - if let Ok(amt) = data.socket.read(&mut buf) { - data.amt += amt; - } else { - break; - } + while let Ok(amt) = data.socket.read(&mut buf) { + data.amt += amt; if data.amt >= N { data.shutdown = true; break; @@ -270,12 +266,8 @@ fn peek() { Err(err) => panic!("unexpected error: {}", err), } - loop { - if let Ok(amt) = data.socket.read(&mut buf) { - data.amt += amt; - } else { - break; - } + while let Ok(amt) = data.socket.read(&mut buf) { + data.amt += amt; if data.amt >= N { data.shutdown = true; break; @@ -329,12 +321,8 @@ fn write() { for event in &events { assert_eq!(event.token(), Token(1)); let buf = [0; 1024]; - loop { - if let Ok(amt) = data.socket.write(&buf) { - data.amt += amt; - } else { - break; - } + while let Ok(amt) = data.socket.write(&buf) { + data.amt += amt; if data.amt >= N { data.shutdown = true; break;