If your bin name is different then your package name you'll get a missing file error.
Error: at `/Users/sam/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cargo-leptos-0.2.5/src/command/serve.rs:8:46`
Caused by:
0: at `/Users/sam/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cargo-leptos-0.2.5/src/compile/server.rs:39:22`
1: at `/Users/sam/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cargo-leptos-0.2.5/src/service/site.rs:117:44`
2: Could not read "target/debug/leptos_chat_app" at `/Users/sam/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cargo-leptos-0.2.5/src/ext/fs.rs:44:10`
3: No such file or directory (os error 2)
But this pull request adds a bin-exe parameter which you can use to change the output file name.
If your bin name is different then your package name you'll get a missing file error.
But this pull request adds a bin-exe parameter which you can use to change the output file name.