Are cargo workspace members packaged into a crate?


I have a project and few workspace members specified in the Cargo.toml. Will they be packaged into a crate when I package it?


No, each individual crate needs to be published individually.


How do path = dependencies work for crates in a workspace when the package is published?


AFAIK cargo refuses to publish such crates.


@newpavlov, I’ve published crates which specify a dependency by version and by path.


The published crate will only use the dependency by version, ignoring any path.


You specify both a path and version: