Abstract common invocations of "cargo", that do not require copying the generated bindgen file or setting up MESON_BUILD_ROOT. In the future these could also do completely without cargo and invoke the underlying programs directly. Reviewed-by: Junjie Mao <junjie.mao@hotmail.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
		
			
				
	
	
		
			20 lines
		
	
	
		
			401 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			401 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
# QEMU bindings and API wrappers
 | 
						|
 | 
						|
This library exports helper Rust types, Rust macros and C FFI bindings for internal QEMU APIs.
 | 
						|
 | 
						|
The C bindings can be generated with `bindgen`, using this build target:
 | 
						|
 | 
						|
```console
 | 
						|
$ make bindings.inc.rs
 | 
						|
```
 | 
						|
 | 
						|
## Generate Rust documentation
 | 
						|
 | 
						|
Common Cargo tasks can be performed from the QEMU build directory
 | 
						|
 | 
						|
```console
 | 
						|
$ make clippy
 | 
						|
$ make rustfmt
 | 
						|
$ make rustdoc
 | 
						|
```
 |