v1.7.0
This patch adds a feature to enable compatibility with the new tokio
0.3.0 release, and updates internal dependencies.
Tokio 0.3.x compat
Since earlier this year async-std
has shipped with a tokio-02
feature flag that enables libraries written for the tokio
runtime to work on async-std
as well. When this flag is enabled async-std
ensures that whenever it spawns a thread on its executor, the right tokio-specific thread state is initialized for it. That means no more thread 'main' panicked at 'not currently running on the Tokio runtime.'
errors when running async-std
and tokio
in the same application.
This patch introduces a new feature flag: tokio-03
which enables the same mechanism for the latest version of the tokio
runtime. As applications migrate from tokio
0.2.x to 0.3.x, mixing dependencies that use both async-std
and tokio
will continue to work.
Added
- Add
tokio03
feature flag (#895)
Internal
- chore: update dependencies (#897)