Closed NicholasLYang closed 3 months ago
Indeed, you can! If you set
[workspace.metadata.dist]
dist = false
Then that setting gets inherited by every package, so they have to manually override it with
[package.metadata.dist]
dist = true
Awesome, thanks!
Hi, we're looking to adopt cargo-dist for releasing Turborepo. However, we share a repository with other projects, and therefore have multiple binaries in the workspace. I noticed that you can opt-out for a binary by setting
publish = false
ordist = false
. I was wondering if there's a way to instead makecargo dist
opt-in by default, so you have to explicitly annotatepublish = true
. That way if someone adds a new binary but forgets to annotate it, we won't publish it by accident.