summaryrefslogtreecommitdiff
path: root/mesonbuild/cargo/raw.py
AgeCommit message (Collapse)Author
2025-10-23cargo: parse lints tablePaolo Bonzini
The lints table in Cargo.toml has a very human-targeted syntax. When building manifest.from_raw, flatten everything into a single list, prefixing the tool name to every warning option and sorting by priority. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2025-10-23cargo: list a few entries that should not warnPaolo Bonzini
2025-10-17cargo: raw.Manifest can be any Cargo.tomlXavier Claessens
raw.Manifest represents any Cargo.toml file, a package, a workspace, or both. However, the Manifest dataclass can only be a package, and the Workspace dataclass is a workspace with an optional root package.
2025-08-01cargo: typing: describe which entries can be inherited from a workspacePaolo Bonzini
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2025-08-01cargo: manifest: support workspace inheritancePaolo Bonzini
Add support for passing a workspace dictionary and setting fields from it into the dataclasses. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2025-08-01cargo: typing: add missing fieldsPaolo Bonzini
Add a few fields to "package" that support workspace inheritance. Complete the Workspace dictionary. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2025-08-01cargo: move TypedDicts for Cargo.toml to "raw" modulePaolo Bonzini
Fix a few issues: * Cargo.lock's version is an int * Different BuildTargets have different types for the argument of from_raw Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>