summaryrefslogtreecommitdiff
path: root/mesonbuild/cargo/cfg.py
AgeCommit message (Collapse)Author
2025-05-31cargo: Do not convert cfg() to Meson ASTXavier Claessens
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 Claessens
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.
2023-10-09cargo: builder: Remove all duplicated functionsXavier Claessens
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 Baker
This uses a recursive descent parser + lexer to create an IR from cfg() expressions, which it then converts into meson IR.