Files
rustkernel/src/lib.rs
2025-06-20 01:50:08 +02:00

29 líneas
463 B
Rust

// SPDX-License-Identifier: GPL-2.0
//! Rust Kernel
//!
//! A modern kernel implementation in Rust, inspired by the Linux kernel
//! and utilizing the Rust for Linux infrastructure.
#![no_std]
#![no_main]
extern crate kernel;
// Re-export the kernel crate
pub use kernel::*;
/// Main kernel entry point
#[no_mangle]
pub extern "C" fn _start() -> ! {
kernel::kernel_main()
}
#[cfg(test)]
mod tests {
#[test]
fn basic_test() {
assert_eq!(2 + 2, 4);
}
}