qemu/subprojects/packagefiles/arbitrary-int-1-rs/meson.build
Paolo Bonzini d2c12785be rust: hide warnings for subprojects
This matches cargo's own usage of "--cap-lints allow" when building
dependencies.  The dummy changes to the .wrap files help Meson notice
that the subproject is out of date.

Also remove an unnecessary subprojects/unicode-ident-1-rs/meson.build file.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2025-01-10 23:34:44 +01:00

21 lines
527 B
Meson

project('arbitrary-int-1-rs', 'rust',
meson_version: '>=1.5.0',
version: '1.2.7',
license: 'MIT',
default_options: [])
_arbitrary_int_rs = static_library(
'arbitrary_int',
files('src/lib.rs'),
gnu_symbol_visibility: 'hidden',
override_options: ['rust_std=2021', 'build.rust_std=2021'],
rust_args: ['--cap-lints', 'allow'],
rust_abi: 'rust',
dependencies: [],
)
arbitrary_int_dep = declare_dependency(
link_with: _arbitrary_int_rs,
)
meson.override_dependency('arbitrary-int-1-rs', arbitrary_int_dep)