mirror of
https://github.com/panpaul/tiny_os
synced 2024-09-20 09:45:19 +08:00
chore: no lib
This commit is contained in:
parent
c72f5e4bac
commit
03fa1b5f4c
25
src/lib.rs
25
src/lib.rs
@ -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;
|
34
src/main.rs
34
src/main.rs
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user