Debian Codegraph @

test cases/failing/135 cargo toml error/meson.build

raw
1 project('cargo-toml-error', 'c')
2
3 if not add_languages('rust', required: false)
4 error('MESON_SKIP_TEST Rust not present, required for Cargo subprojets')
5 endif
6
7 # Check if we have tomllib/tomli (not toml2json)
8 python = find_program('python3', 'python')
9 result = run_command(python, '-c', 'import tomllib', check: false)
10 if result.returncode() != 0
11 result = run_command(python, '-c', 'import tomli', check: false)
12 if result.returncode() != 0
13 # Skip test if using toml2json - error format will be different
14 error('MESON_SKIP_TEST toml2json in use, skipping test')
15 endif
16 endif
17
18 # This should trigger a CargoTomlError with proper location info
19 foo_dep = dependency('foo-0')