Skip to content

Commit

Permalink
Release v1.0.3 (#1843)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomasdezeeuw authored Nov 29, 2024
1 parent cbb53c7 commit f45f492
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 23 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -151,11 +152,12 @@ jobs:
- arm64_32-apple-watchos
- armv7-sony-vita-newlibeabihf
- i686-unknown-linux-gnu
- i686-unknown-hurd-gnu
# TODO: reenable <https://github.com/tokio-rs/mio/issues/1844>.
#- 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
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>",
Expand Down
24 changes: 6 additions & 18 deletions tests/tcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit f45f492

Please sign in to comment.