commit | bfe0f6b02a4d76bcdc05f50e03667447f6069445 | [log] [tgz] |
---|---|---|
author | Paolo Bonzini <pbonzini@redhat.com> | Fri May 23 17:59:52 2025 +0200 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Thu Jun 05 20:24:51 2025 +0200 |
tree | 08ac92be1522530861acfea69723ec419f5592ed | |
parent | a95ad49bbfac2a5080c5761688465bdbb1969c24 [diff] |
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>