mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
subprojects: add the foreign crate
This is a cleaned up and separated version of the patches at https://lore.kernel.org/all/20240701145853.1394967-4-pbonzini@redhat.com/ https://lore.kernel.org/all/20240701145853.1394967-5-pbonzini@redhat.com/ Its first user will be the Error bindings; for example a QEMU Error ** can be converted to a Rust Option using unsafe { Option::<Error>::from_foreign(c_error) } Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
a95ad49bbf
commit
bfe0f6b02a
7 changed files with 41 additions and 3 deletions
|
@ -1,11 +1,13 @@
|
|||
subproject('anyhow-1-rs', required: true)
|
||||
subproject('bilge-0.2-rs', required: true)
|
||||
subproject('bilge-impl-0.2-rs', required: true)
|
||||
subproject('foreign-0.3-rs', required: true)
|
||||
subproject('libc-0.2-rs', required: true)
|
||||
|
||||
anyhow_rs = dependency('anyhow-1-rs')
|
||||
bilge_rs = dependency('bilge-0.2-rs')
|
||||
bilge_impl_rs = dependency('bilge-impl-0.2-rs')
|
||||
foreign_rs = dependency('foreign-0.3-rs')
|
||||
libc_rs = dependency('libc-0.2-rs')
|
||||
|
||||
subproject('proc-macro2-1-rs', required: true)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue