1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//! Contains integrations with specific runtimes
//!
//! Supported features:
//! - `tokio`
//! Enables the tokio runtime.
//! - `async-std`
//! Enables the async-std runtime.
//! - `default-tokio`
//! Enables the tokio runtime and re-exports it under the name `default`.
//! - `default-async-std`
//! Enables the async-std runtime and re-exports it under the name `default`.
//! - `default-disabled`
//! Prevents a default runtime being exported, regardless of other features.
//!
//! Multiple runtimes may be enabled, but only one default runtime may be
//! chosen. It is not necessary to choose a default runtime unless you want
//! to use the `default` module.
//!
//! If no default runtime is selected, and the `default-disabled` option is
//! not enabled, the `panic` runtime will be re-exported as the default.
//! This allows library authors to build against the default runtime whilst
//! remaining runtime agnostic.
pub use tokio as default;
pub use async_std as default;
pub use panic as default;