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.
The published crate will only use the dependency by version, ignoring any path.
You specify both a path and version: https://github.com/sfackler/rust-openssl/blob/master/openssl/Cargo.toml#L24