mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -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
7
subprojects/foreign-0.3-rs.wrap
Normal file
7
subprojects/foreign-0.3-rs.wrap
Normal file
|
@ -0,0 +1,7 @@
|
|||
[wrap-file]
|
||||
directory = foreign-0.3.1
|
||||
source_url = https://crates.io/api/v1/crates/foreign/0.3.1/download
|
||||
source_filename = foreign-0.3.1.tar.gz
|
||||
source_hash = 17ca1b5be8c9d320daf386f1809c7acc0cb09accbae795c2001953fa50585846
|
||||
#method = cargo
|
||||
patch_directory = foreign-0.3-rs
|
Loading…
Add table
Add a link
Reference in a new issue