{"id":22284656,"url":"https://github.com/gz/rust-multiboot","last_synced_at":"2025-07-28T22:30:47.538Z","repository":{"id":28954999,"uuid":"32481091","full_name":"gz/rust-multiboot","owner":"gz","description":"Multiboot library written in rust.","archived":false,"fork":false,"pushed_at":"2023-01-06T03:03:14.000Z","size":752,"stargazers_count":21,"open_issues_count":2,"forks_count":11,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-31T11:44:57.818Z","etag":null,"topics":["bootloader","multiboot","os","osdev"],"latest_commit_sha":null,"homepage":"https://docs.rs/multiboot","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/gz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-18T19:58:44.000Z","updated_at":"2024-09-05T13:58:00.000Z","dependencies_parsed_at":"2023-01-14T13:49:51.069Z","dependency_job_id":null,"html_url":"https://github.com/gz/rust-multiboot","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gz%2Frust-multiboot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gz%2Frust-multiboot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gz%2Frust-multiboot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gz%2Frust-multiboot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gz","download_url":"https://codeload.github.com/gz/rust-multiboot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227591026,"owners_count":17790569,"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":["bootloader","multiboot","os","osdev"],"created_at":"2024-12-03T16:49:16.138Z","updated_at":"2024-12-03T16:49:16.680Z","avatar_url":"https://github.com/gz.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Multiboot [![Crates.io](https://img.shields.io/crates/v/multiboot.svg)](https://crates.io/crates/multiboot) ![Build](https://github.com/gz/rust-multiboot/actions/workflows/standard.yml/badge.svg)\n\n\nThis is a multiboot (v1) library written entirely in rust. The code depends only on libcore.\n\n## How-to use\n\n```rust\nextern crate core;\n\nuse multiboot::information::{MemoryManagement, Multiboot, PAddr};\nuse core::{slice, mem};\n\nstruct Mem;\n\nimpl MemoryManagement for Mem {\n    unsafe fn paddr_to_slice(\u0026self, addr: PAddr, size: usize) -\u003e Option\u003c\u0026'static [u8]\u003e {\n        let ptr = mem::transmute(addr);\n        Some(slice::from_raw_parts(ptr, size))\n    }\n    \n    // If you only want to read fields, you can simply return `None`.\n    unsafe fn allocate(\u0026mut self, _length: usize) -\u003e Option\u003c(PAddr, \u0026mut [u8])\u003e {\n        None\n    }\n    \n    unsafe fn deallocate(\u0026mut self, addr: PAddr) {\n        if addr != 0 {\n            unimplemented!()\n        }\n    }\n}\n\nstatic mut MEM: Mem = Mem;\n\n/// mboot_ptr is the initial pointer to the multiboot structure\n/// provided in %ebx on start-up.\npub fn use_multiboot(mboot_ptr: PAddr) -\u003e Option\u003cMultiboot\u003c'static, 'static\u003e\u003e {\n    unsafe {\n        Multiboot::from_ptr(mboot_ptr, \u0026mut MEM)\n    }\n}\n```\n\nFunctionality is still not complete and patches are welcome!\n\n## Documentation\n\n* [API Documentation](https://docs.rs/multiboot/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgz%2Frust-multiboot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgz%2Frust-multiboot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgz%2Frust-multiboot/lists"}