https://linen.dev logo
Idiomatic way to run Shuttle Axum setup locally
# help
l
Hi! I'm fairly new to Rust (and shuttle), I followed the instructions outline here for setting up an Axum project with shuttle: https://docs.shuttle.rs/examples/axum When trying to
cargo run
I get this error:
Copy code
error: a bin target must be available for `cargo run`
I understand that it's because I don't have a
main.rs
file with a
main
function (or some
src/bin/*.rs
file). What is the "normal" way to run my Axum project locally? Thanks!
e
You should run
cargo shuttle run
l
Awesome, thank you!