Skip to content

Possible regression bug in workspaces handling #3698

@nbaksalyar

Description

@nbaksalyar

Cargo/rustc behavior has changed from 1.14 to 1.15 when building libraries within workspaces.

E.g. here's the output for 1.14:

$ cargo build --release
Compiling safe_app v0.1.0
...
$ ls ../target/release/deps/
libsafe_app.so
libsafe_app.rlib
libsafe_app.a

And there's also libsafe_app.so in ../target/release.

Now, after I switch my toolchain to 1.15 in rustup, a hash is appended to output file names:

$ cargo build --release
Compiling safe_app v0.1.0
...
$ ls ../target/release/deps/
libsafe_app-98e60e5e55f57beb.so
libsafe_app-98e60e5e55f57beb.a
libsafe_app-98e60e5e55f57beb.rlib

And, more importantly, there's nothing in the ../target/release/ directory.

At the same time it still works correctly for non-workspaced projects and I can find the library file copied to the target/release/ dir.

This breaks continuous integration scripts on 1.15 for projects that use workspaces.

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