1
0
mirror of https://github.com/fafhrd91/actix-net synced 2024-11-30 17:44:34 +01:00
actix-net/actix-rt/CHANGES.md

169 lines
4.6 KiB
Markdown
Raw Normal View History

2018-12-10 04:55:40 +01:00
# Changes
2023-09-17 21:25:58 +02:00
## Unreleased
2022-12-21 21:37:04 +01:00
2024-05-11 18:39:34 +02:00
- Minimum supported Rust version (MSRV) is now 1.70.
2023-08-26 19:02:48 +02:00
## 2.9.0
- Add `actix_rt::System::runtime()` method to retrieve the underlying `actix_rt::Runtime` runtime.
- Add `actix_rt::Runtime::tokio_runtime()` method to retrieve the underlying Tokio runtime.
2023-07-17 04:05:39 +02:00
- Minimum supported Rust version (MSRV) is now 1.65.
2023-09-17 21:25:58 +02:00
## 2.8.0
2023-03-03 23:36:13 +01:00
2024-02-01 07:42:41 +01:00
- Add `#[track_caller]` attribute to `spawn` functions and methods.
- Update `tokio-uring` dependency to `0.4`.
- Minimum supported Rust version (MSRV) is now 1.59.
2023-09-17 21:25:58 +02:00
## 2.7.0
2023-03-03 23:36:13 +01:00
2024-02-01 07:42:41 +01:00
- Update `tokio-uring` dependency to `0.3`.
2022-03-02 17:40:11 +01:00
- Minimum supported Rust version (MSRV) is now 1.49.
2022-01-12 15:38:13 +01:00
2023-09-17 21:25:58 +02:00
## 2.6.0
2023-03-03 23:36:13 +01:00
2024-02-01 07:42:41 +01:00
- Update `tokio-uring` dependency to `0.2`.
2021-12-31 09:09:10 +01:00
2023-09-17 21:25:58 +02:00
## 2.5.1
2023-03-03 23:36:13 +01:00
2024-02-01 07:42:41 +01:00
- Expose `System::with_tokio_rt` and `Arbiter::with_tokio_rt`.
2021-11-22 02:15:18 +01:00
2023-09-17 21:25:58 +02:00
## 2.5.0
2023-03-03 23:36:13 +01:00
2024-02-01 07:42:41 +01:00
- Add `System::run_with_code` to allow retrieving the exit code on stop.
2021-11-05 01:51:34 +01:00
2023-09-17 21:25:58 +02:00
## 2.4.0
2023-03-03 23:36:13 +01:00
2024-02-01 07:42:41 +01:00
- Add `Arbiter::try_current` for situations where thread may or may not have Arbiter context.
- Start io-uring with `System::new` when feature is enabled.
2021-10-11 23:55:23 +02:00
2023-09-17 21:25:58 +02:00
## 2.3.0
2023-03-03 23:36:13 +01:00
2024-02-01 07:42:41 +01:00
- The `spawn` method can now resolve with non-unit outputs.
- Add experimental (semver-exempt) `io-uring` feature for enabling async file I/O on linux.
2021-03-29 07:57:14 +02:00
2023-09-17 21:25:58 +02:00
## 2.2.0
2024-02-01 07:42:41 +01:00
- **BREAKING** `ActixStream::{poll_read_ready, poll_write_ready}` methods now return `Ready` object in ok variant.
2023-03-03 23:36:13 +01:00
- Breakage is acceptable since `ActixStream` was not intended to be public.
2021-02-25 12:50:24 +01:00
2023-09-17 21:25:58 +02:00
## 2.1.0
2023-03-03 23:36:13 +01:00
2024-02-01 07:42:41 +01:00
- Add `ActixStream` extension trait to include readiness methods.
- Re-export `tokio::net::TcpSocket` in `net` module
2021-02-06 23:52:53 +01:00
2023-09-17 21:25:58 +02:00
## 2.0.2
2023-03-03 23:36:13 +01:00
2024-02-01 07:42:41 +01:00
- Add `Arbiter::handle` to get a handle of an owned Arbiter.
- Add `System::try_current` for situations where actix may or may not be running a System.
2021-02-06 16:54:11 +01:00
2023-09-17 21:25:58 +02:00
## 2.0.1
2023-03-03 23:36:13 +01:00
2024-02-01 07:42:41 +01:00
- Expose `JoinError` from Tokio.
2021-01-31 06:19:30 +01:00
2023-09-17 21:25:58 +02:00
## 2.0.0
2023-03-03 23:36:13 +01:00
2024-02-01 07:42:41 +01:00
- Remove all Arbiter-local storage methods.
- Re-export `tokio::pin`.
2021-02-03 11:25:31 +01:00
2023-09-17 21:25:58 +02:00
## 2.0.0-beta.3
2023-03-03 23:36:13 +01:00
2024-02-01 07:42:41 +01:00
- Remove `run_in_tokio`, `attach_to_tokio` and `AsyncSystemRunner`.
- Return `JoinHandle` from `actix_rt::spawn`.
- Remove old `Arbiter::spawn`. Implementation is now inlined into `actix_rt::spawn`.
- Rename `Arbiter::{send => spawn}` and `Arbiter::{exec_fn => spawn_fn}`.
- Remove `Arbiter::exec`.
- Remove deprecated `Arbiter::local_join` and `Arbiter::is_running`.
- `Arbiter::spawn` now accepts !Unpin futures.
- `System::new` no longer takes arguments.
- Remove `System::with_current`.
- Remove `Builder`.
- Add `System::with_init` as replacement for `Builder::run`.
- Rename `System::{is_set => is_registered}`.
- Add `ArbiterHandle` for sending messages to non-current-thread arbiters.
- `System::arbiter` now returns an `&ArbiterHandle`.
- `Arbiter::current` now returns an `ArbiterHandle` instead.
- `Arbiter::join` now takes self by value.
2021-01-29 03:21:06 +01:00
2023-09-17 21:25:58 +02:00
## 2.0.0-beta.2
2023-03-03 23:36:13 +01:00
2024-02-01 07:42:41 +01:00
- Add `task` mod with re-export of `tokio::task::{spawn_blocking, yield_now, JoinHandle}`
2021-12-18 03:49:23 +01:00
- Add default "macros" feature to allow faster compile times when using `default-features=false`.
2023-09-17 21:25:58 +02:00
## 2.0.0-beta.1
2023-03-03 23:36:13 +01:00
2024-02-01 07:42:41 +01:00
- Add `System::attach_to_tokio` method.
- Update `tokio` dependency to `1.0`.
- Rename `time` module `delay_for` to `sleep`, `delay_until` to `sleep_until`, `Delay` to `Sleep` to stay aligned with Tokio's naming.
2021-12-18 03:49:23 +01:00
- Remove `'static` lifetime requirement for `Runtime::block_on` and `SystemRunner::block_on`.
2024-02-01 07:42:41 +01:00
- These methods now accept `&self` when calling.
- Remove `'static` lifetime requirement for `System::run` and `Builder::run`.
- `Arbiter::spawn` now panics when `System` is not in scope.
- Fix work load issue by removing `PENDING` thread local.
2023-09-17 21:25:58 +02:00
## 1.1.1
2023-03-03 23:36:13 +01:00
2024-02-01 07:42:41 +01:00
- Fix memory leak due to
2020-04-29 20:07:12 +02:00
2023-09-17 21:25:58 +02:00
## 1.1.0 _(YANKED)_
2023-03-03 23:36:13 +01:00
2024-02-01 07:42:41 +01:00
- Expose `System::is_set` to check if current system has ben started
- Add `Arbiter::is_running` to check if event loop is running
- Add `Arbiter::local_join` associated function to get be able to `await` for spawned futures
2023-09-17 21:25:58 +02:00
## 1.0.0
2019-12-11 05:34:50 +01:00
2023-03-03 23:36:13 +01:00
- Update dependencies
2019-12-05 11:40:24 +01:00
2023-09-17 21:25:58 +02:00
## 1.0.0-alpha.3
2023-03-03 23:36:13 +01:00
2021-12-18 03:49:23 +01:00
- Migrate to tokio 0.2
- Fix compilation on non-unix platforms
2019-12-05 11:40:24 +01:00
2023-09-17 21:25:58 +02:00
## 1.0.0-alpha.2
2023-03-03 23:36:13 +01:00
2021-12-18 03:49:23 +01:00
- Export `main` and `test` attribute macros
- Export `time` module (re-export of tokio-timer)
- Export `net` module (re-export of tokio-net)
2019-12-02 17:30:09 +01:00
2023-09-17 21:25:58 +02:00
## 1.0.0-alpha.1
2019-11-25 16:49:11 +01:00
2023-03-03 23:36:13 +01:00
- Migrate to std::future and tokio 0.2
2019-11-25 16:49:11 +01:00
2023-09-17 21:25:58 +02:00
## 0.2.6
2023-03-03 23:36:13 +01:00
2021-12-18 03:49:23 +01:00
- Allow to join arbiter's thread. #60
- Fix arbiter's thread panic message.
2023-09-17 21:25:58 +02:00
## 0.2.5
2019-09-03 00:03:03 +02:00
2023-03-03 23:36:13 +01:00
- Add arbiter specific storage
2019-09-03 00:03:03 +02:00
2023-09-17 21:25:58 +02:00
## 0.2.4
2019-07-17 06:30:59 +02:00
2023-03-03 23:36:13 +01:00
- Avoid a copy of the Future when initializing the Box. #29
2019-07-17 06:30:59 +02:00
2023-09-17 21:25:58 +02:00
## 0.2.3
2019-06-22 05:02:17 +02:00
2023-03-03 23:36:13 +01:00
- Allow to start System using existing CurrentThread Handle #22
2019-06-22 05:02:17 +02:00
2023-09-17 21:25:58 +02:00
## 0.2.2
2019-03-28 11:56:52 +01:00
2023-03-03 23:36:13 +01:00
- Moved `blocking` module to `actix-threadpool` crate
2019-06-22 05:02:17 +02:00
2023-09-17 21:25:58 +02:00
## 0.2.1
2023-03-03 23:36:13 +01:00
2021-12-18 03:49:23 +01:00
- Added `blocking` module
- Added `Arbiter::exec_fn` - execute fn on the arbiter's thread
- Added `Arbiter::exec` - execute fn on the arbiter's thread and wait result
2019-03-12 06:54:27 +01:00
2023-09-17 21:25:58 +02:00
## 0.2.0
2023-03-03 23:36:13 +01:00
2021-12-18 03:49:23 +01:00
- `run` method returns `io::Result<()>`
- Removed `Handle`
2023-09-17 21:25:58 +02:00
## 0.1.0
2023-03-03 23:36:13 +01:00
2021-12-18 03:49:23 +01:00
- Initial release