Crates.io | dos_to_go |
lib.rs | dos_to_go |
version | 0.0.6 |
source | src |
created_at | 2024-11-26 03:23:10.62682 |
updated_at | 2024-11-26 03:58:05.439829 |
description | Run Rust on DOS! |
homepage | |
repository | https://github.com/0x0nyx98/dos_to_go |
max_upload_size | |
id | 1461162 |
size | 4,609 |
yes its named after hot to go
step 1: make your rust project (cargo new blahblahblahwhatever)
step 2: copy the contents of the quickstart folder in this repo into your new project folder (they should be on the same level as src, so .cargo and src should now be two subdirs of the same folder)
(if you're reading this on crates.io, im referring to the repo here!)
step 3: add the dos_to_go dependency (cargo add dos_to_go)
step 4: rename your main.rs to lib.rs and add this header:
#![no_std]
use core::arch::asm;
use dos_to_go::*;
step 5: add these lines to your cargo.toml:
[lib]
crate-type = ["staticlib"]
step 6: make sure your main function returns a u8, and give it the #[dos_to_go::entrypoint]
attribute
step 7: now, in your terminal, run nix-shell
step 8: congration! you can now run build
to build a dos .exe, and run
will automatically build and run the app in dosbox! :D