QEMU main repository: Please see https://www.qemu.org/docs/master/devel/submitting-a-patch.html for how to submit changes to QEMU. Pull Requests are ignored. Please only use release tarballs from the QEMU website. http://www.qemu.org
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
598 B
26 lines
598 B
project('foreign-0.3-rs', 'rust',
|
|
meson_version: '>=1.5.0',
|
|
version: '0.2.0',
|
|
license: 'MIT OR Apache-2.0',
|
|
default_options: [])
|
|
|
|
subproject('libc-0.2-rs', required: true)
|
|
libc_rs = dependency('libc-0.2-rs')
|
|
|
|
_foreign_rs = static_library(
|
|
'foreign',
|
|
files('src/lib.rs'),
|
|
gnu_symbol_visibility: 'hidden',
|
|
override_options: ['rust_std=2021', 'build.rust_std=2021'],
|
|
rust_abi: 'rust',
|
|
rust_args: [
|
|
'--cap-lints', 'allow',
|
|
],
|
|
dependencies: [libc_rs],
|
|
)
|
|
|
|
foreign_dep = declare_dependency(
|
|
link_with: _foreign_rs,
|
|
)
|
|
|
|
meson.override_dependency('foreign-0.3-rs', foreign_dep)
|
|
|