Skip to content

Windows warning: output filename collision #41

Open
@akesson

Description

@akesson

Summary of discord exchange

Full error mesage
PS [project_dir]> cargo leptos watch --release
warning: output filename collision.
The bin target `leptos_start` in package `leptos_start v0.1.0 ([project_dir])` has the same output filename as the lib target `leptos_start` in package `leptos_start v0.1.0 ([project_dir])`.
Colliding filename is: [project_dir]\target/server\release\deps\leptos_start.pdb
The targets should have unique names.
Consider changing their names to be unique or compiling them separately.
This may become a hard error in the future; see <https://github.com/rust-lang/cargo/issues/6313>.
    Finished release [optimized] target(s) in 0.20s
       Cargo finished cargo build --package=leptos_start --bin=leptos_start --target-dir=target/server --no-default-features --features=ssr --release
    Finished release [optimized] target(s) in 0.15s
       Cargo finished cargo build --package=leptos_start --lib --target-dir=target/front --target=wasm32-unknown-unknown --no-default-features --features=hydrate --release
      Notify watching folders .\src, style
2023-01-08T23:22:33.066Z INFO  [leptos_start] serving at http://127.0.0.1:3000
2023-01-08T23:22:33.067Z INFO  [actix_server::builder] Starting 16 workers
2023-01-08T23:22:33.067Z INFO  [actix_server::server] Actix runtime found; starting in Actix runtime
      Leptos ctrl-c received
PS [project_dir]>

file list from a cargo build on linux:

leptos_start
libleptos_start.rlib
libleptos_start.so

file list from a cargo build on windows:

leptos_start.exe
leptos_start.pdb
leptos_start.dll
libleptos_start.rlib

rust-lang/cargo#8519

so the pdb is the debug info for the .exe
and for the .dll
so yeah, confirmed cargo bug
not sure why the linux version outputs lib prefixed files
but the windows one doesn't

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions