 5a5110d290
			
		
	
	
		5a5110d290
		
	
	
	
	
		
			
			Add rust/qemu-api, which exposes rust-bindgen generated FFI bindings and provides some declaration macros for symbols visible to the rest of QEMU. Co-authored-by: Junjie Mao <junjie.mao@intel.com> Co-authored-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Junjie Mao <junjie.mao@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org> Link: https://lore.kernel.org/r/0fb23fbe211761b263aacec03deaf85c0cc39995.1727961605.git.manos.pitsidianakis@linaro.org Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
		
			
				
	
	
		
			15 lines
		
	
	
		
			458 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			458 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // Copyright 2024, Linaro Limited
 | |
| // Author(s): Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
 | |
| // SPDX-License-Identifier: GPL-2.0-or-later
 | |
| 
 | |
| use std::path::Path;
 | |
| 
 | |
| fn main() {
 | |
|     if !Path::new("src/bindings.rs").exists() {
 | |
|         panic!(
 | |
|             "No generated C bindings found! Either build them manually with bindgen or with meson \
 | |
|              (`ninja bindings.rs`) and copy them to src/bindings.rs, or build through meson."
 | |
|         );
 | |
|     }
 | |
| }
 |