We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
tokio-macros
main
1 parent 44a31b1 commit 730b77aCopy full SHA for 730b77a
tokio-macros/src/lib.rs
@@ -86,6 +86,8 @@ use proc_macro::TokenStream;
86
/// # #[cfg(tokio_unstable)]
87
/// #[tokio::main(flavor = "local")]
88
/// # async fn main() {}
89
+/// # #[cfg(not(tokio_unstable))]
90
+/// # fn main() {}
91
/// ```
92
///
93
/// # Function arguments
@@ -155,6 +157,8 @@ use proc_macro::TokenStream;
155
157
/// async fn main() {
156
158
/// println!("Hello world");
159
/// }
160
161
162
163
164
/// Equivalent code not using `#[tokio::main]`
@@ -170,6 +174,8 @@ use proc_macro::TokenStream;
170
174
171
175
/// })
172
176
177
178
173
179
180
181
0 commit comments