refined-lifeguard-78233
02/17/2023, 2:37 PMbest-glass-41070
02/17/2023, 2:38 PMrefined-lifeguard-78233
02/17/2023, 2:38 PMbest-glass-41070
02/17/2023, 2:39 PMcargo shuttle project new command inside of a folder which doesn't have a cargo/shuttle project initialized.refined-lifeguard-78233
02/17/2023, 2:39 PMcargo shuttle project rm is happeningrefined-lifeguard-78233
02/17/2023, 2:39 PMrefined-lifeguard-78233
02/17/2023, 2:39 PMbest-glass-41070
02/17/2023, 2:40 PMrefined-lifeguard-78233
02/17/2023, 2:41 PMrefined-lifeguard-78233
02/17/2023, 2:41 PMuse axum::{routing::get, Router};
use sync_wrapper::SyncWrapper;
async fn hello_world() -> &'static str {
"Hello, world!"
}
#[shuttle_service::main]
async fn axum() -> shuttle_service::ShuttleAxum {
let router = Router::new().route("/hello", get(hello_world));
let sync_wrapper = SyncWrapper::new(router);
Ok(sync_wrapper)
}refined-lifeguard-78233
02/17/2023, 2:41 PMrefined-lifeguard-78233
02/17/2023, 2:41 PM[package]
name = "some-try"
version = "0.1.0"
edition = "2021"
publish = false
[lib]
[dependencies]
shuttle-service = { version = "0.10.0", features = ["web-axum"] }
axum = "0.6.7"
sync_wrapper = "0.1.2"refined-lifeguard-78233
02/17/2023, 2:41 PMkind-area-3810
02/17/2023, 2:41 PMcargo shuttle --version?refined-lifeguard-78233
02/17/2023, 2:41 PMrefined-lifeguard-78233
02/17/2023, 2:41 PMkind-area-3810
02/17/2023, 2:42 PMrefined-lifeguard-78233
02/17/2023, 2:43 PMkind-area-3810
02/17/2023, 2:43 PMcargo install cargo-shuttlerefined-lifeguard-78233
02/17/2023, 2:43 PMrefined-lifeguard-78233
02/17/2023, 2:44 PMrefined-lifeguard-78233
02/17/2023, 2:44 PMkind-area-3810
02/17/2023, 2:47 PMrefined-lifeguard-78233
02/17/2023, 2:48 PMrefined-lifeguard-78233
02/17/2023, 2:52 PMrefined-lifeguard-78233
02/17/2023, 2:52 PMerror: couldn't read \\?\C:\Users\Paul\Desktop\Main\RUST\learnings\some-try\target\debug\build\rustversion-0287506047303358\out/version.expr: The filename, directory name, or volume label syntax is incorrect. (os error 123)
--> C:\Users\Paul\.cargo\registry\src\github.com-1ecc6299db9ec823\rustversion-1.0.11\src\lib.rs:185:30
|
185 | const RUSTVERSION: Version = include!(concat!(env!("OUT_DIR"), "/version.expr"));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the macro `include` (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error
error: could not compile `rustversion` due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
Error: 1 job failedrefined-lifeguard-78233
02/17/2023, 2:52 PMrefined-lifeguard-78233
02/17/2023, 2:52 PMrefined-lifeguard-78233
02/17/2023, 2:53 PMrefined-lifeguard-78233
02/17/2023, 3:31 PMrefined-lifeguard-78233
02/17/2023, 3:31 PMrefined-lifeguard-78233
02/17/2023, 3:44 PMrefined-lifeguard-78233
02/17/2023, 3:45 PMkind-area-3810
02/17/2023, 4:43 PMrefined-lifeguard-78233
02/18/2023, 4:40 AMerror[E0433]: failed to resolve: could not find `main` in `tokio`
--> src\lib.rs:56:10
|
56 | #[tokio::main]
| ^^^^ could not find `main` in `tokio`
error: aborting due to previous erroragreeable-painting-48846
02/18/2023, 8:09 AMagreeable-painting-48846
02/18/2023, 8:09 AMtokio::main macro?refined-lifeguard-78233
02/19/2023, 4:03 AMrefined-lifeguard-78233
02/19/2023, 4:03 AMagreeable-painting-48846
02/19/2023, 7:56 AM#[tokio::main] is used on the entry point function (main) but because you're already using #[shuttle_service::main] you don't need to run the tokio macro