34 lines
668 B
Rust
34 lines
668 B
Rust
#![no_std]
|
|
// A kernel panic takes the whole system down, so kernel code may not
|
|
// contain any way to panic. Tests and proofs are exempt.
|
|
#![cfg_attr(
|
|
not(any(test, kani)),
|
|
deny(
|
|
clippy::unwrap_used,
|
|
clippy::expect_used,
|
|
clippy::panic,
|
|
clippy::unreachable,
|
|
clippy::todo,
|
|
clippy::unimplemented,
|
|
clippy::indexing_slicing
|
|
)
|
|
)]
|
|
|
|
#[cfg(kani)]
|
|
pub mod proofs;
|
|
|
|
pub mod capability;
|
|
pub mod endpoint;
|
|
pub mod error;
|
|
pub mod fault;
|
|
pub mod generations;
|
|
pub mod irq;
|
|
pub mod memory;
|
|
pub mod message;
|
|
pub mod notification;
|
|
pub mod process;
|
|
pub mod resource;
|
|
pub mod scheduler;
|
|
pub mod syscall;
|
|
pub mod thread;
|