]> git.ipfire.org Git - thirdparty/qemu.git/commit
subprojects: add the foreign crate
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 23 May 2025 15:59:52 +0000 (17:59 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 5 Jun 2025 18:24:51 +0000 (20:24 +0200)
commitbfe0f6b02a4d76bcdc05f50e03667447f6069445
tree08ac92be1522530861acfea69723ec419f5592ed
parenta95ad49bbfac2a5080c5761688465bdbb1969c24
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>
rust/meson.build
rust/qemu-api/meson.build
scripts/archive-source.sh
scripts/make-release
subprojects/.gitignore
subprojects/foreign-0.3-rs.wrap [new file with mode: 0644]
subprojects/packagefiles/foreign-0.3-rs/meson.build [new file with mode: 0644]