qemu/rust/qemu-api/src
Paolo Bonzini 2f9eec8f72 rust: build: establish a baseline of lints across all crates
Many lints that default to allow can be helpful in detecting bugs or
keeping the code style homogeneous.  Add them liberally, though perhaps
not as liberally as in hw/char/pl011/src/lib.rs.  In particular, enabling
entire groups can be problematic because of bitrot when new links are
added in the future.

For Clippy, this is actually a feature that is only present in Cargo
1.74.0 but, since we are not using Cargo to *build* QEMU, only developers
will need a new-enough cargo and only to run tools such as clippy.
The requirement does not apply to distros that are building QEMU.

Reviewed-by: Junjie Mao <junjie.mao@hotmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2024-12-10 18:44:06 +01:00
..
bindings.rs rust: build: establish a baseline of lints across all crates 2024-12-10 18:44:06 +01:00
c_str.rs rust: introduce a c_str macro 2024-11-05 14:18:16 +01:00
definitions.rs rust: use std::os::raw instead of core::ffi 2024-11-05 14:18:16 +01:00
device_class.rs rust: do not use --generate-cstr 2024-11-05 14:18:17 +01:00
lib.rs rust: allow using build-root bindings.rs from cargo 2024-12-10 18:44:06 +01:00
offset_of.rs rust: introduce alternative implementation of offset_of! 2024-11-05 14:18:16 +01:00
vmstate.rs rust: introduce alternative implementation of offset_of! 2024-11-05 14:18:16 +01:00
zeroable.rs rust: do not use MaybeUninit::zeroed() 2024-11-05 14:18:17 +01:00