1[workspace] 2resolver = "2" 3members = [ 4 "qemu-api-macros", 5 "qemu-api", 6 "hw/char/pl011", 7] 8 9[workspace.lints.rust] 10unexpected_cfgs = { level = "deny", check-cfg = [ 11 'cfg(MESON)', 'cfg(HAVE_GLIB_WITH_ALIGNED_ALLOC)', 12 'cfg(has_offset_of)'] } 13 14# Occasionally, we may need to silence warnings and clippy lints that 15# were only introduced in newer Rust compiler versions. Do not croak 16# in that case; a CI job with rust_strict_lints == true disables this 17# and ensures that we do not have misspelled allow() attributes. 18unknown_lints = "allow" 19 20# Prohibit code that is forbidden in Rust 2024 21unsafe_op_in_unsafe_fn = "deny" 22