Skip to content

cargo leptos build fails #358

Open
@holg

Description

@holg

cargo leptos build looks for the server binary always in
target/debug
and then fails with:

Error: at `~/.cargo/git/checkouts/cargo-leptos-eb87bffcd2ca8f75/5dd5ec2/src/compile/server.rs:40:22`

Caused by:
    0: at `~/.cargo/git/checkouts/cargo-leptos-eb87bffcd2ca8f75/5dd5ec2/src/service/site.rs:117:44`
    1: Could not read "target/debug/test_leptos" at `/Users/htr/.cargo/git/checkouts/cargo-leptos-eb87bffcd2ca8f75/5dd5ec2/src/ext/fs.rs:44:10`
    2: No such file or directory (os error 2)

in fact everything builds well,
but the binary is located in target/TARGET_TRIPLE/debug.
In my case i can find the binary in target/aarch64-apple-darwin/
if i copy this into target/debug
it works, but sure this i not nice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions