Skip to content

AtriChatterjee1/rust-os

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Creating an Operating System on Rust

This project aims to build a minimalistic Operating System on Rust programming language.

Why Rust?

  • Its low-level with memory safety implemented,
  • Extremely fast (low latency)

Currently has only BIOS support, will add UEFI support progressively!

How to Replicate

Clone the repo, and open terminal on the same directory

rustup component add llvm-tools-preview

To create the bootimage, use the following snippet:

cargo install bootimage
cargo bootimage

This would give you an output of the form :

image

Now run the following command, to print hello-world.

cargo run

This would print out Hello World on your Qemu emulator display.

To run tests run

cargo test 

or if you'd like to run a specific test file use this command

cargo test --test [file_name]
cargo test --test should_panic     // example

Be careful while running should_panic, as it gives sucess when the test panicks, and fails when all tests run fine!

Thanks for checking out this repository, if you'd find this insightful, do star the repo!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages