From 7f9631c98a8b7eb194bf3df551b57a5d8abd5ca4 Mon Sep 17 00:00:00 2001 From: John Nunley Date: Mon, 25 Sep 2023 09:28:52 -0700 Subject: [PATCH] v2.0.0 Signed-off-by: John Nunley --- CHANGELOG.md | 12 ++++++++++++ Cargo.toml | 4 ++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 762b1b4..659e680 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,15 @@ +# Version 2.0.0 + +- **Breaking:** `Async::new()` now takes types that implement `AsFd`/`AsSocket` instead of `AsRawFd`/`AsRawSocket`, in order to implement I/O safety. (#142) +- **Breaking:** `Async::get_mut()`, `Async::read_with_mut()` and `Async::write_with_mut()` are now `unsafe`. The underlying source is technically "borrowed" by the polling instance, so moving it out would be unsound. (#142) +- Expose miscellaneous `kqueue` filters in the `os::kqueue` module. (#112) +- Expose a way to get the underlying `Poller`'s file descriptor on Unix. (#125) +- Add a new `Async::new_nonblocking` method to allow users to avoid duplicating an already nonblocking socket. (#159) +- Remove the unused `fastrand` and `memchr` dependencies. (#131) +- Use `tracing` instead of `log`. (#140) +- Support ESP-IDF. (#144) +- Optimize the `block_on` function to reduce allocation, leading to a slight performance improvement. (#149) + # Version 1.13.0 - Use [`rustix`] instead of [`libc`]/[`windows-sys`] for system calls (#76) diff --git a/Cargo.toml b/Cargo.toml index 4c58a1e..1ee7c31 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,8 +2,8 @@ name = "async-io" # When publishing a new version: # - Update CHANGELOG.md -# - Create "v1.x.y" git tag -version = "1.13.0" +# - Create "v2.x.y" git tag +version = "2.0.0" authors = ["Stjepan Glavina "] edition = "2021" rust-version = "1.63"