Skip to content

cargo build in a workspaced crate builds workspaces' default members #5932

Closed
@Nemo157

Description

@Nemo157

I have a virtual workspace where I override the default-members. I expected this to just set the package that builds when in the root of the virtual workspace, however when I go into one of the members sub-directories I find that it still only builds the default members:

~/sources/embrio-rs → cargo build --verbose
       Fresh futures-core-preview v0.3.0-alpha.3 (https://github.com/rust-lang-nursery/futures-rs#09617ac0)
       Fresh either v1.5.0
       Fresh pin-utils v0.1.0-alpha.1
       Fresh memchr v2.0.1
       Fresh futures-channel-preview v0.3.0-alpha.3 (https://github.com/rust-lang-nursery/futures-rs#09617ac0)
       Fresh futures-io-preview v0.3.0-alpha.3 (https://github.com/rust-lang-nursery/futures-rs#09617ac0)
       Fresh embrio-core v0.1.0 (file:///Users/Nemo157/sources/embrio-rs/embrio-core)
       Fresh futures-sink-preview v0.3.0-alpha.3 (https://github.com/rust-lang-nursery/futures-rs#09617ac0)
       Fresh futures-util-preview v0.3.0-alpha.3 (https://github.com/rust-lang-nursery/futures-rs#09617ac0)
       Fresh embrio-util v0.1.0 (file:///Users/Nemo157/sources/embrio-rs/embrio-util)
       Fresh embrio v0.1.0 (file:///Users/Nemo157/sources/embrio-rs/embrio)
    Finished dev [unoptimized + debuginfo] target(s) in 0.09s

~/sources/embrio-rs/ → cd embrio-native

~/sources/embrio-rs/embrio-native → cargo build --verbose
       Fresh futures-core-preview v0.3.0-alpha.3 (https://github.com/rust-lang-nursery/futures-rs#09617ac0)
       Fresh pin-utils v0.1.0-alpha.1
       Fresh either v1.5.0
       Fresh memchr v2.0.1
       Fresh futures-channel-preview v0.3.0-alpha.3 (https://github.com/rust-lang-nursery/futures-rs#09617ac0)
       Fresh futures-io-preview v0.3.0-alpha.3 (https://github.com/rust-lang-nursery/futures-rs#09617ac0)
       Fresh embrio-core v0.1.0 (file:///Users/Nemo157/sources/embrio-rs/embrio-core)
       Fresh futures-sink-preview v0.3.0-alpha.3 (https://github.com/rust-lang-nursery/futures-rs#09617ac0)
       Fresh futures-util-preview v0.3.0-alpha.3 (https://github.com/rust-lang-nursery/futures-rs#09617ac0)
       Fresh embrio-util v0.1.0 (file:///Users/Nemo157/sources/embrio-rs/embrio-util)
       Fresh embrio v0.1.0 (file:///Users/Nemo157/sources/embrio-rs/embrio)
    Finished dev [unoptimized + debuginfo] target(s) in 0.07s

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions