diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2025-10-23 09:51:19 +0200 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2025-10-29 11:34:19 -0700 |
| commit | 5c01c56fd5e63667feaf2bcb61b57cc288eb3dfd (patch) | |
| tree | caeb6d99cce6cdaced07b48665f9bf35b1835cff /mesonbuild/cargo/manifest.py | |
| parent | ae311ae85c52124ca3648e6e20df95ccda2c4b70 (diff) | |
| download | meson-5c01c56fd5e63667feaf2bcb61b57cc288eb3dfd.tar.gz | |
cargo: ensure default members is valid
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'mesonbuild/cargo/manifest.py')
| -rw-r--r-- | mesonbuild/cargo/manifest.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/cargo/manifest.py b/mesonbuild/cargo/manifest.py index a194d0120..ec84e4b16 100644 --- a/mesonbuild/cargo/manifest.py +++ b/mesonbuild/cargo/manifest.py @@ -568,6 +568,8 @@ class Workspace: ws = _raw_to_dataclass(raw['workspace'], cls, 'Workspace') if 'package' in raw: ws.root_package = Manifest.from_raw(raw, path, ws, '.') + if not ws.default_members: + ws.default_members = ['.'] if ws.root_package else ws.members return ws |
