axodotdev / cargo-dist

📦 shippable application packaging
https://axodotdev.github.io/cargo-dist/
Apache License 2.0
1.47k stars 66 forks source link

invert "can be a package or workspace" between dist-workspace.toml and dist.toml #1298

Closed Gankra closed 3 weeks ago

Gankra commented 1 month ago

Currently a dist.toml can be a [workspace] but we'd like to instead make it so dist-workspace.toml can be a [package].

Constraints/goals:

Right now we let a dist.toml be a defacto dist-workspace.toml but it can't have the workspace.members field. We should flip it around so that a dist-workspace.toml file is always the root, and if it doesn't have workspace.members it's assumed the current dir is a package, as if it were a dist.toml.

Gankra commented 3 weeks ago

Done in #1395