Files
reims-vgpu/clippy.toml
T
Anees Iqbal 98fe2a3bd5 🆕 Replace the tree with libreims_vgpu and its C API
This repository now holds libreims_vgpu, a Rust library that is the host
side of the paravirtualized GPU macOS guests drive, in place of Apple's
ParavirtualizedGraphics.framework: the library and its C API
(reims_vgpu.h), the PCI device's option ROM, QEMU's apple-gfx on that API
(vendor/qemu), the behaviour-lock suite that drives the C API as QEMU
does, and reims-ctl, the VM manager users run. README.md says what it is
and how it is laid out, and AGENTS.md how to change it.

Every file of the earlier tree is replaced. vendor/qemu moves to the
steelbrain/reims-vgpu branch of the same public repository.
2026-10-11 20:27:17 +03:00

22 lines
1.1 KiB
TOML

# Architecture 17.4. reims-vgpu-core denies clippy::disallowed_types and
# clippy::disallowed_methods; other crates see them as warnings.
disallowed-types = [
{ path = "std::sync::Mutex", reason = "use sync::Mutex (parking_lot) (7.1)" },
{ path = "std::sync::RwLock", reason = "use parking_lot or sync::WriterPrefRwLock (7.1)" },
]
disallowed-methods = [
{ path = "std::process::abort", reason = "use raise::death::fatal (6.4)" },
{ path = "std::thread::spawn", reason = "core's threads come from the platform's Threads: rt::thread::spawn_named (7.1)" },
{ path = "std::time::Instant::now", reason = "use Clock (7.5)" },
{ path = "std::time::SystemTime::now", reason = "use Clock (7.5)" },
{ path = "std::panic::catch_unwind", reason = "allowed only in the testkit (capture, death, launcher), an isolated task's trap (tasks::isolation::life) (6.5) and the C API's catch on Linux (ffi::catch, 6.7)" },
]
# Tests may unwrap, index and panic: a failure is the assertion (architecture 17.4).
allow-unwrap-in-tests = true
allow-expect-in-tests = true
allow-panic-in-tests = true
allow-indexing-slicing-in-tests = true