uv/crates/uv-build-backend/src
konsti e798b09aa4
Multiple modules in namespace packages (#14460)
Support multiple root modules in namespace packages by enumerating them:

```toml
[tool.uv.build-backend]
module-name = ["foo", "bar"]
```

This allows applications with multiple root packages without migrating
to workspaces. Since those are regular module names (we iterate over
them an process each one like a single module names), it allows
combining dotted (namespace) names and regular names. It also
technically allows combining regular and stub modules, even though this
is even less recommends.

We don't recommend this structure (please use a workspace instead, or
structure everything in one root module), but it reduces the number of
cases that need `namespace = true`.

Fixes #14435
Fixes #14438

---------

Co-authored-by: Zanie Blue <contact@zanie.dev>
2025-07-09 17:45:44 +00:00
..
lib.rs Multiple modules in namespace packages (#14460) 2025-07-09 17:45:44 +00:00
metadata.rs Apply first set of Rustfmt edition 2024 changes (#13478) 2025-05-16 20:19:02 -04:00
serde_verbatim.rs A minimal build backend for uv: uv_build (#11446) 2025-03-06 13:27:20 -06:00
settings.rs Multiple modules in namespace packages (#14460) 2025-07-09 17:45:44 +00:00
source_dist.rs Multiple modules in namespace packages (#14460) 2025-07-09 17:45:44 +00:00
wheel.rs Multiple modules in namespace packages (#14460) 2025-07-09 17:45:44 +00:00