| 1 | rustc = meson.get_compiler('rust') |
| 2 | |
| 3 | if rustc.version().version_compare('<1.65.0') |
| 4 | error('rustc version ' + rustc.version() + ' is unsupported. Please upgrade to at least 1.65.0') |
| 5 | endif |
| 6 | extra_args += [ '--cfg', 'std_backtrace' ] # >= 1.65.0 |
| 7 | if rustc.version().version_compare('<1.81.0') |
| 8 | extra_args += [ '--cfg', 'anyhow_no_core_error' ] |
| 9 | endif |