{"id":19147801,"url":"https://github.com/refcell/rust_os","last_synced_at":"2025-10-27T06:17:05.004Z","repository":{"id":150177849,"uuid":"372254002","full_name":"refcell/rust_os","owner":"refcell","description":"Rust-powered OS following the https://os.phil-opp.com/ tutorial","archived":false,"fork":false,"pushed_at":"2021-05-31T20:26:04.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-03T17:34:44.192Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/refcell.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-30T15:45:40.000Z","updated_at":"2021-05-31T20:26:07.000Z","dependencies_parsed_at":"2023-04-15T02:22:56.465Z","dependency_job_id":null,"html_url":"https://github.com/refcell/rust_os","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/refcell%2Frust_os","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/refcell%2Frust_os/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/refcell%2Frust_os/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/refcell%2Frust_os/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/refcell","download_url":"https://codeload.github.com/refcell/rust_os/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240232037,"owners_count":19768933,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T07:52:24.700Z","updated_at":"2025-10-27T06:17:04.942Z","avatar_url":"https://github.com/refcell.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rust_os\n\nRust-powered OS following the https://os.phil-opp.com/ tutorial\n\n## Building\n\nRequires\n\n-   [Rust Nightly](https://doc.rust-lang.org/book/appendix-07-nightly-rust.html)\n    -   In short, `rustup toolchain install nightly` installs the nightly build and `rustup override set nightly` sets the toolchain as nightly for this project directory\n-   `rust-src` component (install with `rustup component add rust-src`)\n-   `bootimage` tool to compile kernal and bootloader and then link the two together after, creating a bootable disk image.\n    -   Install with `cargo install bootimage`\n    -   Requires `llvm-tools-preview` rustup component (install with `rustup component add llvm-tools-preview`).\n\nBuild: `cargo build` or specify the verbose build target with `cargo build --target x86-64-blog-os.json`\nCreate a bootable disk: `cargo bootimage`\n\n## Booting\n\nBoot in QEMU: `qemu-system-x86_64 -drive format=raw,file=target/x86-64-blog-os/debug/bootimage-rust-os.bin`\n\nThis opens a window like:\n\n![QEMU](./images/qemu.png)\n\n## Write to a USB Stick\n\nRun `dd if=target/x86-64-blog-os/debug/bootimage-rust-os.bin of=/dev/sdX \u0026\u0026 sync`\n\nNOTE (from [os.phil-opp.com](https://os.phil-opp.com/minimal-rust-kernel/#real-machine)):\n\n```\nWhere sdX is the device name of your USB stick. Be careful to choose the correct device name, because everything on that device is overwritten.\n```\n\n## Running\n\nCompile kernal and boot into QEMU with `cargo run`\n\n## Testing\n\nSimply run `cargo test` in the root directory.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frefcell%2Frust_os","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frefcell%2Frust_os","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frefcell%2Frust_os/lists"}