#dos #vga #ms-dos #opl #graphics

sys dos-like-sys

Low-level bindings to dos-like

6 releases

0.3.0 Oct 18, 2023
0.2.3 Apr 10, 2022
0.2.2 Mar 17, 2022
0.1.0 Mar 5, 2022

#1453 in Game dev

27 downloads per month
Used in dos-like

Custom license

2MB
4.5K SLoC

C 3.5K SLoC // 0.2% comments Rust 717 SLoC // 0.0% comments Shell 10 SLoC // 0.2% comments

dos-like-sys

Low level bindings to Mattias Gustavsson's dos-like framework, for writing DOS-like applications in Rust.

You probably prefer to use the high level bindings instead.


lib.rs:

Rust high level bindings to dos-like, the library/framework for writing applications that look like MS-DOS programs from the 1990's.

The bindings are directly generated from the original source code.

Using

This crate does not function as a regular library, because it already defines a main function by itself. Attempting to create your own executable with its own main function will result in a linker error. For the building process to work, the main source file needs the no_main attribute and to define an extern C function dosmain instead.

#![no_main]

#[no_mangle]
pub extern "C" fn dosmain() -> i32 {
    // your code here

    0
}

No runtime deps