mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-08 00:00:13 +02:00
tokio: update outdated unstable features section (#7839)
This commit is contained in:
+5
-11
@@ -320,7 +320,7 @@
|
|||||||
//! Beware though that this will pull in many extra dependencies that you may not
|
//! Beware though that this will pull in many extra dependencies that you may not
|
||||||
//! need.
|
//! need.
|
||||||
//!
|
//!
|
||||||
//! - `full`: Enables all features listed below except `test-util` and `tracing`.
|
//! - `full`: Enables all features listed below except `test-util` and unstable features.
|
||||||
//! - `rt`: Enables `tokio::spawn`, the current-thread scheduler,
|
//! - `rt`: Enables `tokio::spawn`, the current-thread scheduler,
|
||||||
//! and non-scheduler utilities.
|
//! and non-scheduler utilities.
|
||||||
//! - `rt-multi-thread`: Enables the heavier, multi-threaded, work-stealing scheduler.
|
//! - `rt-multi-thread`: Enables the heavier, multi-threaded, work-stealing scheduler.
|
||||||
@@ -330,7 +330,7 @@
|
|||||||
//! `UdpSocket`, as well as (on Unix-like systems) `AsyncFd` and (on
|
//! `UdpSocket`, as well as (on Unix-like systems) `AsyncFd` and (on
|
||||||
//! FreeBSD) `PollAio`.
|
//! FreeBSD) `PollAio`.
|
||||||
//! - `time`: Enables `tokio::time` types and allows the schedulers to enable
|
//! - `time`: Enables `tokio::time` types and allows the schedulers to enable
|
||||||
//! the built in timer.
|
//! the built-in timer.
|
||||||
//! - `process`: Enables `tokio::process` types.
|
//! - `process`: Enables `tokio::process` types.
|
||||||
//! - `macros`: Enables `#[tokio::main]` and `#[tokio::test]` macros.
|
//! - `macros`: Enables `#[tokio::main]` and `#[tokio::test]` macros.
|
||||||
//! - `sync`: Enables all `tokio::sync` types.
|
//! - `sync`: Enables all `tokio::sync` types.
|
||||||
@@ -351,16 +351,10 @@
|
|||||||
//! Some feature flags are only available when specifying the `tokio_unstable` flag:
|
//! Some feature flags are only available when specifying the `tokio_unstable` flag:
|
||||||
//!
|
//!
|
||||||
//! - `tracing`: Enables tracing events.
|
//! - `tracing`: Enables tracing events.
|
||||||
|
//! - `io-uring`: Enables `io-uring` (Linux only).
|
||||||
|
//! - `taskdump`: Enables `taskdump` (Linux only).
|
||||||
//!
|
//!
|
||||||
//! Likewise, some parts of the API are only available with the same flag:
|
//! Likewise, this flag enables access to unstable APIs.
|
||||||
//!
|
|
||||||
//! - [`task::Builder`]
|
|
||||||
//! - Some methods on [`task::JoinSet`]
|
|
||||||
//! - [`runtime::RuntimeMetrics`]
|
|
||||||
//! - [`runtime::Builder::on_task_spawn`]
|
|
||||||
//! - [`runtime::Builder::on_task_terminate`]
|
|
||||||
//! - [`runtime::Builder::unhandled_panic`]
|
|
||||||
//! - [`runtime::TaskMeta`]
|
|
||||||
//!
|
//!
|
||||||
//! This flag enables **unstable** features. The public API of these features
|
//! This flag enables **unstable** features. The public API of these features
|
||||||
//! may break in 1.x releases. To enable these features, the `--cfg
|
//! may break in 1.x releases. To enable these features, the `--cfg
|
||||||
|
|||||||
@@ -189,7 +189,6 @@ mod harness;
|
|||||||
use self::harness::Harness;
|
use self::harness::Harness;
|
||||||
|
|
||||||
mod id;
|
mod id;
|
||||||
#[cfg_attr(not(tokio_unstable), allow(unreachable_pub, unused_imports))]
|
|
||||||
pub use id::{id, try_id, Id};
|
pub use id::{id, try_id, Id};
|
||||||
|
|
||||||
#[cfg(feature = "rt")]
|
#[cfg(feature = "rt")]
|
||||||
|
|||||||
Reference in New Issue
Block a user