acceptable-nest-93001
03/15/2023, 4:13 AMCargo.toml to use axum = 0.6.9 due to the tokio issue mentioned in one of the help posts.
My `Cargo.toml`:
[package]
name = "jon-gjengset-qa"
version = "0.1.0"
edition = "2021"
publish = false
[lib]
[dependencies]
shuttle-service = { version = "0.11.0", features = ["web-axum"] }
axum = "0.6.9"
sync_wrapper = "0.1.2"
Using cargo shuttle run, I get the error:
error: couldn't read \\?\C:\Users\shouv\OneDrive\Desktop\Programming\projects\jon-gjengset-qa\target\debug\build\rustversion-d71d0b70b5b475aa\out/version.expr: The filename, directory name, or volume label syntax is incorrect. (os error 123)
--> C:\Users\shouv\.cargo\registry\src\github.com-1ecc6299db9ec823\rustversion-1.0.12\src\lib.rs:186:30
|
186 | 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 failedagreeable-painting-48846
03/15/2023, 6:36 AMripe-river-71137
03/15/2023, 8:14 AMagreeable-painting-48846
03/15/2023, 8:14 AMcargo +1.65 shuttle run fixes this in WSL (although at least for me, it took an abnormally long time to launch which prompted me to switch over to Linux)
If you aren't on 1.65 or above already I'd try upgrading your local Rust version. If you are, the above command fixes most issues but feel free to report back if it doesn'tripe-river-71137
03/15/2023, 8:15 AMripe-river-71137
03/15/2023, 8:16 AMkind-area-3810
03/15/2023, 9:36 AMcargo shuttle build before cargo shuttle run.acceptable-nest-93001
03/15/2023, 9:53 AMcargo shuttle build, but it says that there is no such command.kind-area-3810
03/15/2023, 9:54 AMcargo build 🤦acceptable-nest-93001
03/15/2023, 9:57 AMcargo build.kind-area-3810
03/15/2023, 10:02 AMagreeable-painting-48846
03/15/2023, 10:02 AMacceptable-nest-93001
03/15/2023, 10:10 AM