{"$message_type":"diagnostic","message":"failed to resolve: could not find `main` in `tokio`","code":{"code":"E0433","explanation":"An undeclared crate, module, or type was used.\n\nErroneous code example:\n\n```compile_fail,E0433\nlet map = HashMap::new();\n// error: failed to resolve: use of undeclared type `HashMap`\n```\n\nPlease verify you didn't misspell the type/module's name or that you didn't\nforget to import it:\n\n```\nuse std::collections::HashMap; // HashMap has been imported.\nlet map: HashMap<u32, u32> = HashMap::new(); // So it can be used!\n```\n\nIf you've expected to use a crate name:\n\n```compile_fail\nuse ferris_wheel::BigO;\n// error: failed to resolve: use of undeclared module or unlinked crate\n```\n\nMake sure the crate has been added as a dependency in `Cargo.toml`.\n\nTo use a module from your current crate, add the `crate::` prefix to the path.\n"},"level":"error","spans":[{"file_name":"src\\main.rs","byte_start":131,"byte_end":135,"line_start":9,"line_end":9,"column_start":10,"column_end":14,"is_primary":true,"text":[{"text":"#[tokio::main]","highlight_start":10,"highlight_end":14}],"label":"could not find `main` in `tokio`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0433]\u001b[0m\u001b[1m\u001b[97m: failed to resolve: could not find `main` in `tokio`\u001b[0m\n \u001b[1m\u001b[96m--> \u001b[0msrc\\main.rs:9:10\n  \u001b[1m\u001b[96m|\u001b[0m\n\u001b[1m\u001b[96m9\u001b[0m \u001b[1m\u001b[96m|\u001b[0m #[tokio::main]\n  \u001b[1m\u001b[96m|\u001b[0m          \u001b[1m\u001b[91m^^^^\u001b[0m \u001b[1m\u001b[91mcould not find `main` in `tokio`\u001b[0m\n\n"}
{"$message_type":"diagnostic","message":"failed to resolve: could not find `time` in `tokio`","code":{"code":"E0433","explanation":"An undeclared crate, module, or type was used.\n\nErroneous code example:\n\n```compile_fail,E0433\nlet map = HashMap::new();\n// error: failed to resolve: use of undeclared type `HashMap`\n```\n\nPlease verify you didn't misspell the type/module's name or that you didn't\nforget to import it:\n\n```\nuse std::collections::HashMap; // HashMap has been imported.\nlet map: HashMap<u32, u32> = HashMap::new(); // So it can be used!\n```\n\nIf you've expected to use a crate name:\n\n```compile_fail\nuse ferris_wheel::BigO;\n// error: failed to resolve: use of undeclared module or unlinked crate\n```\n\nMake sure the crate has been added as a dependency in `Cargo.toml`.\n\nTo use a module from your current crate, add the `crate::` prefix to the path.\n"},"level":"error","spans":[{"file_name":"src\\main.rs","byte_start":1026,"byte_end":1030,"line_start":36,"line_end":36,"column_start":16,"column_end":20,"is_primary":true,"text":[{"text":"        tokio::time::sleep(Duration::new(1, 0)).await;","highlight_start":16,"highlight_end":20}],"label":"could not find `time` in `tokio`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"found an item that was configured out","code":null,"level":"note","spans":[{"file_name":"C:\\Users\\decid\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\tokio-1.49.0\\src\\macros\\cfg.rs","byte_start":12577,"byte_end":12593,"line_start":554,"line_end":554,"column_start":19,"column_end":35,"is_primary":false,"text":[{"text":"            #[cfg(feature = \"time\")]","highlight_start":19,"highlight_end":35}],"label":"the item is gated behind the `time` feature","suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"C:\\Users\\decid\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\tokio-1.49.0\\src\\lib.rs","byte_start":20532,"byte_end":20563,"line_start":563,"line_end":565,"column_start":1,"column_end":2,"is_primary":false,"text":[{"text":"cfg_time! {","highlight_start":1,"highlight_end":1},{"text":"    pub mod time;","highlight_start":1,"highlight_end":1},{"text":"}","highlight_start":1,"highlight_end":2}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"cfg_time!","def_site_span":{"file_name":"C:\\Users\\decid\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\tokio-1.49.0\\src\\macros\\cfg.rs","byte_start":12498,"byte_end":12519,"line_start":551,"line_end":551,"column_start":1,"column_end":22,"is_primary":false,"text":[{"text":"macro_rules! cfg_time {","highlight_start":1,"highlight_end":22}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},{"file_name":"C:\\Users\\decid\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\tokio-1.49.0\\src\\lib.rs","byte_start":20556,"byte_end":20560,"line_start":564,"line_end":564,"column_start":13,"column_end":17,"is_primary":true,"text":[{"text":"    pub mod time;","highlight_start":13,"highlight_end":17}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0433]\u001b[0m\u001b[1m\u001b[97m: failed to resolve: could not find `time` in `tokio`\u001b[0m\n   \u001b[1m\u001b[96m--> \u001b[0msrc\\main.rs:36:16\n    \u001b[1m\u001b[96m|\u001b[0m\n \u001b[1m\u001b[96m36\u001b[0m \u001b[1m\u001b[96m|\u001b[0m         tokio::time::sleep(Duration::new(1, 0)).await;\n    \u001b[1m\u001b[96m|\u001b[0m                \u001b[1m\u001b[91m^^^^\u001b[0m \u001b[1m\u001b[91mcould not find `time` in `tokio`\u001b[0m\n    \u001b[1m\u001b[96m|\u001b[0m\n\u001b[1m\u001b[92mnote\u001b[0m: found an item that was configured out\n   \u001b[1m\u001b[96m--> \u001b[0mC:\\Users\\decid\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\tokio-1.49.0\\src\\lib.rs:564:13\n    \u001b[1m\u001b[96m|\u001b[0m\n\u001b[1m\u001b[96m563\u001b[0m \u001b[1m\u001b[96m|\u001b[0m \u001b[1m\u001b[96m/\u001b[0m cfg_time! {\n\u001b[1m\u001b[96m564\u001b[0m \u001b[1m\u001b[96m|\u001b[0m \u001b[1m\u001b[96m|\u001b[0m     pub mod time;\n    \u001b[1m\u001b[96m|\u001b[0m \u001b[1m\u001b[96m|\u001b[0m             \u001b[1m\u001b[92m^^^^\u001b[0m\n\u001b[1m\u001b[96m565\u001b[0m \u001b[1m\u001b[96m|\u001b[0m \u001b[1m\u001b[96m|\u001b[0m }\n    \u001b[1m\u001b[96m|\u001b[0m \u001b[1m\u001b[96m|_-\u001b[0m \u001b[1m\u001b[96mthe item is gated behind the `time` feature\u001b[0m\n\n"}
{"$message_type":"diagnostic","message":"`main` function is not allowed to be `async`","code":{"code":"E0752","explanation":"The entry point of the program was marked as `async`.\n\nErroneous code example:\n\n```compile_fail,E0752\nasync fn main() -> Result<(), ()> { // error!\n    Ok(())\n}\n```\n\n`fn main()` or the specified start function is not allowed to be `async`. Not\nhaving a correct async runtime library setup may cause this error. To fix it,\ndeclare the entry point without `async`:\n\n```\nfn main() -> Result<(), ()> { // ok!\n    Ok(())\n}\n```\n"},"level":"error","spans":[{"file_name":"src\\main.rs","byte_start":137,"byte_end":152,"line_start":10,"line_end":10,"column_start":1,"column_end":16,"is_primary":true,"text":[{"text":"async fn main() {","highlight_start":1,"highlight_end":16}],"label":"`main` function is not allowed to be `async`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0752]\u001b[0m\u001b[1m\u001b[97m: `main` function is not allowed to be `async`\u001b[0m\n  \u001b[1m\u001b[96m--> \u001b[0msrc\\main.rs:10:1\n   \u001b[1m\u001b[96m|\u001b[0m\n\u001b[1m\u001b[96m10\u001b[0m \u001b[1m\u001b[96m|\u001b[0m async fn main() {\n   \u001b[1m\u001b[96m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91m`main` function is not allowed to be `async`\u001b[0m\n\n"}
{"$message_type":"diagnostic","message":"aborting due to 3 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"\u001b[1m\u001b[91merror\u001b[0m\u001b[1m\u001b[97m: aborting due to 3 previous errors\u001b[0m\n\n"}
{"$message_type":"diagnostic","message":"Some errors have detailed explanations: E0433, E0752.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"\u001b[1m\u001b[97mSome errors have detailed explanations: E0433, E0752.\u001b[0m\n"}
{"$message_type":"diagnostic","message":"For more information about an error, try `rustc --explain E0433`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"\u001b[1m\u001b[97mFor more information about an error, try `rustc --explain E0433`.\u001b[0m\n"}
