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 |
#1488 in Game dev
Used in dos-like
2MB
4.5K
SLoC
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
}