aboutsummaryrefslogtreecommitdiff
path: root/unittests/cargotests.py
AgeCommit message (Collapse)AuthorFilesLines
2025-05-31cargo: Do not convert cfg() to Meson ASTXavier Claessens1-50/+19
We'll need to evaluate those expressions before generating the AST. Instead take a config key-value dictionary and evaluate the expression to return a boolean.
2025-05-31cargo: Fix cfg() parsingXavier Claessens1-0/+18
Add cfg token to be able to parse the top level cfg() function. Fix parser which was creating a new iterator when recursing which caused the caller function's iterator to not have advanced when recursing function returns.
2024-06-14cargo: Load Cargo.lockXavier Claessens1-1/+35
Cargo.lock is essentially identical to subprojects/*.wrap files. When a (sub)project has a Cargo.lock file this allows automatic fallback for its cargo dependencies.
2023-10-09cargo: Fix '1.0.45' version conversionXavier Claessens1-2/+3
The middle 0 was wrongly dropped.
2023-10-09cargo: builder: Remove all duplicated functionsXavier Claessens1-51/+51
Keep only the Builder class, there is no point in duplicating everything.
2023-06-07cargo/cfg: Add a parser for the rust/cargo cfg() expressionsDylan Baker1-0/+125
This uses a recursive descent parser + lexer to create an IR from cfg() expressions, which it then converts into meson IR.
2023-06-07cargo/version: add a function to convert cargo versioning to mesonDylan Baker1-0/+61