@@ -78,7 +78,7 @@ runtime][Tokio] is considered *experimental*. In order to use
78
78
```
79
79
If you're using a workspace, you should put the ` .cargo/config.toml ` file in the root of your workspace.
80
80
Otherwise, put the ` .cargo/config.toml ` file in the root directory of your crate.
81
-
81
+
82
82
Putting ` .cargo/config.toml ` files below the workspace or crate root directory may lead to tools like
83
83
Rust-Analyzer or VSCode not using your ` .cargo/config.toml ` since they invoke cargo from
84
84
the workspace or crate root and cargo only looks for the ` .cargo ` directory in the current & parent directories.
@@ -101,17 +101,17 @@ runtime][Tokio] is considered *experimental*. In order to use
101
101
[ ` EnvFilter ` ] or [ ` Targets ` ] filters from [ ` tracing-subscriber ` ] , add
102
102
` "tokio=trace,runtime=trace" ` to your filter configuration.
103
103
104
- + Also, ensure you have not enabled any of the [ compile time filter
104
+ + Also, ensure you have not enabled any of the [ compile time filter
105
105
features] [ compile_time_filters ] in your ` Cargo.toml ` .
106
-
106
+
107
107
#### Required Tokio Versions
108
108
109
109
Because instrumentation for different aspects of the runtime is being added to
110
110
Tokio over time, the latest Tokio release is generally * recommended* to access all of
111
111
the console's functionality. However, it should generally be compatible with
112
112
earlier Tokio versions, although some information may not be available. A
113
113
minimum version of [ Tokio v1.0.0] or later is required to use the console's
114
- task instrumentation.
114
+ task instrumentation.
115
115
116
116
Other instrumentation is added in later Tokio releases:
117
117
@@ -126,8 +126,10 @@ Other instrumentation is added in later Tokio releases:
126
126
127
127
* [ Tokio v1.15.0] or later is required to track [ ` tokio::sync ` ] resources, such
128
128
as ` Mutex ` es, ` RwLock ` s, ` Semaphore ` s, ` oneshot ` channels, ` mpsc ` channels, et
129
- cetera.
130
-
129
+ cetera.
130
+
131
+ * [ Tokio v1.21.0] or later is required to use newest ` task::Builder::spawn* ` APIs.
132
+
131
133
[ Tokio v1.0.0 ] : https://github.com/tokio-rs/tokio/releases/tag/tokio-1.0.0
132
134
[ Tokio v1.7.0 ] : https://github.com/tokio-rs/tokio/releases/tag/tokio-1.7.0
133
135
[ Tokio v1.12.0 ] :https://github.com/tokio-rs/tokio/releases/tag/tokio-1.12.0
@@ -144,6 +146,7 @@ Other instrumentation is added in later Tokio releases:
144
146
[ builder ] : https://docs.rs/console-subscriber/latest/console_subscriber/struct.Builder.html
145
147
[ init ] : https://docs.rs/console-subscriber/latest/console_subscriber/fn.init.html
146
148
[ compile_time_filters ] : https://docs.rs/tracing/latest/tracing/level_filters/index.html#compile-time-filters
149
+ [ Tokio v1.21.0 ] : https://github.com/tokio-rs/tokio/releases/tag/tokio-1.21.0
147
150
148
151
### Adding the Console Subscriber
149
152
0 commit comments