rustkernel/src/lib.rs
ale 7409cd4d26
initial commit
Signed-off-by: ale <ale@manalejandro.com>
2025-06-15 22:26:49 +02:00

27 lines
456 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]
// 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);
}
}