Clarification

This commit is contained in:
Stjepan Glavina 2020-07-23 12:40:08 +02:00
parent 7232e53fc8
commit 92364e6fb3
2 changed files with 6 additions and 6 deletions

View File

@ -47,9 +47,9 @@ Look inside the [examples] directory for more.
All async libraries work with smol out of the box.
However, [tokio] is a special case due to its generally hostile attitude towards non-tokio
libraries, insistence on non-standard I/O traits, and lack of documentation on integration
with the larger Rust ecosystem. Fortunately, there are ways around it.
However, [tokio] is generally hostile towards non-tokio libraries, insists on non-standard I/O
traits, and deliberately lacks documentation on integration with the larger Rust ecosystem.
Fortunately, there are ways around it.
Enable the `tokio02` feature flag and `smol::run()` will create a minimal
tokio runtime for its libraries:

View File

@ -34,9 +34,9 @@
//!
//! All async libraries work with smol out of the box.
//!
//! However, [tokio] is a special case due to its generally hostile attitude towards non-tokio
//! libraries, insistence on non-standard I/O traits, and lack of documentation on integration
//! with the larger Rust ecosystem. Fortunately, there are ways around it.
//! However, [tokio] is generally hostile towards non-tokio libraries, insists on non-standard I/O
//! traits, and deliberately lacks documentation on integration with the larger Rust ecosystem.
//! Fortunately, there are ways around it.
//!
//! Enable the `tokio02` feature flag and [`smol::run()`][`crate::run()`] will create a minimal
//! tokio runtime for its libraries: