mirror of
https://github.com/panpaul/tiny_os
synced 2024-09-20 09:45:19 +08:00
37 lines
691 B
Rust
37 lines
691 B
Rust
// We handle entrypoint in arch
|
|
#![no_std]
|
|
#![no_main]
|
|
// Features
|
|
#![feature(concat_idents)]
|
|
#![feature(iter_array_chunks)]
|
|
#![feature(let_chains)]
|
|
#![feature(macro_metavar_expr)]
|
|
#![feature(naked_functions)]
|
|
#![feature(thread_local)]
|
|
// Test Infrastructure
|
|
#![feature(custom_test_frameworks)]
|
|
#![test_runner(test_runner::runner)]
|
|
#![reexport_test_harness_main = "test_main"]
|
|
// no noisy dead_code warnings
|
|
#![allow(dead_code)]
|
|
#![allow(clippy::identity_op)]
|
|
|
|
#[macro_use]
|
|
extern crate static_assertions;
|
|
|
|
mod arch;
|
|
mod drivers;
|
|
mod entry;
|
|
mod lang;
|
|
mod logging;
|
|
mod objects;
|
|
mod plat;
|
|
mod root;
|
|
mod scheduler;
|
|
mod syscall;
|
|
mod vspace;
|
|
|
|
// test infrastructure
|
|
#[cfg(test)]
|
|
mod test_runner;
|