chore: no lib

This commit is contained in:
Paul Pan 2023-12-29 17:00:48 +08:00
parent a680907a77
commit 9b73d703b4
2 changed files with 31 additions and 28 deletions

View File

@ -1,25 +0,0 @@
#![no_std]
#![feature(asm_const)]
#![feature(naked_functions)]
#![feature(panic_info_message)]
#![feature(stmt_expr_attributes)]
extern crate static_assertions;
// arch
pub mod arch;
// rust language runtime
pub mod lang;
// entrypoint
pub mod entry;
// page table
pub mod mm;
// utils
pub mod utils;
// logging
pub mod logging;

View File

@ -1,6 +1,34 @@
// We handle entrypoint in arch
#![no_std]
#![no_main]
// Features
#![feature(asm_const)]
#![feature(naked_functions)]
#![feature(panic_info_message)]
#![feature(stmt_expr_attributes)]
// Test Infrastructure
#![feature(custom_test_frameworks)]
#![test_runner(test_runner::runner)]
#![reexport_test_harness_main = "test_main"]
#![cfg_attr(test, allow(dead_code))]
extern crate static_assertions;
// arch
pub mod arch;
// rust language runtime
pub mod lang;
// entrypoint
pub mod entry;
// page table
pub mod mm;
// utils
pub mod utils;
// logging
pub mod logging;
#[allow(unused_imports)]
#[allow(clippy::single_component_path_imports)]
use tiny_os;