An extra benefit of workspaces is that they allow to place lint level settings in a single Cargo.toml; the settings are then inherited by packages in the workspace. Correspondingly, teach rustc_args.py to get the unexpected_cfgs configuration from the workspace Cargo.toml. Note that it is still possible to allow or deny warnings per crate or module, via the #![] attribute syntax. The rust/qemu-api/src/bindings.rs file is an example. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
		
			
				
	
	
		
			26 lines
		
	
	
		
			541 B
		
	
	
	
		
			TOML
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			541 B
		
	
	
	
		
			TOML
		
	
	
	
	
	
[package]
 | 
						|
name = "qemu_api_macros"
 | 
						|
version = "0.1.0"
 | 
						|
edition = "2021"
 | 
						|
authors = ["Manos Pitsidianakis <manos.pitsidianakis@linaro.org>"]
 | 
						|
license = "GPL-2.0-or-later"
 | 
						|
readme = "README.md"
 | 
						|
homepage = "https://www.qemu.org"
 | 
						|
description = "Rust bindings for QEMU - Utility macros"
 | 
						|
repository = "https://gitlab.com/qemu-project/qemu/"
 | 
						|
resolver = "2"
 | 
						|
publish = false
 | 
						|
keywords = []
 | 
						|
categories = []
 | 
						|
 | 
						|
[lib]
 | 
						|
proc-macro = true
 | 
						|
 | 
						|
[dependencies]
 | 
						|
proc-macro2 = "1"
 | 
						|
quote = "1"
 | 
						|
syn = { version = "2", features = ["extra-traits"] }
 | 
						|
 | 
						|
[lints]
 | 
						|
workspace = true
 |