Skip to content

No output library created when using workspaces #3432

Closed
@phil-opp

Description

@phil-opp

Example Project (git repo):

Cargo.toml:

[package]
authors = ["Philipp Oppermann <dev@phil-opp.com>"]
name = "issue"
version = "0.1.0"

[dependencies.foo]
path = "libs/foo"

[workspace]

libs/foo/Cargo.toml:

[package]
authors = ["Philipp Oppermann <dev@phil-opp.com>"]
name = "foo"
version = "0.1.0"

src/lib.rs and libs/foo/src/lib.rs are both empty.

When I run cargo build, there is no output rlib in target/debug. It works if I remove the workspace from the Cargo.toml.

cargo 0.16.0-nightly (ddb5c32 2016-12-16)
rustc 1.15.0-nightly (8f02c429a 2016-12-15)

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