dos_like_sys/
lib.rs

1//! Rust high level bindings to [`dos-like`][1],
2//! the library/framework for writing applications that look
3//! like MS-DOS programs from the 1990's.
4//! 
5//! [1]: https://github.com/mattiasgustavsson/dos-like
6//! 
7//! The bindings are directly generated from the original source code.
8//!
9//! ## Using
10//! 
11//! **This crate does not function as a regular library,**
12//! because it already defines a `main` function by itself.
13//! Attempting to create your own executable with its own `main` function
14//! will result in a linker error.
15//! For the building process to work,
16//! the main source file needs the `no_main` attribute
17//! and to define an extern C function `dosmain` instead.
18//! 
19//! ```no_run
20//! #![no_main]
21//!
22//! #[no_mangle]
23//! pub extern "C" fn dosmain() -> i32 {
24//!     // your code here
25//! 
26//!     0
27//! }
28//! ```
29
30#![allow(nonstandard_style)]
31mod bindings;
32
33pub use bindings::*;