#bindings #github #wrapper #hx-c-floppy-emulator #assembly #image #com

hxcadaptor

Bindings for libhxcfe https://github.com/jfdelnero/HxCFloppyEmulator/. Unfinished work, contributions are welcomed.

5 releases

0.1.4 Oct 7, 2023
0.1.3 Oct 7, 2023
0.1.2 Oct 5, 2023
0.1.1 Oct 4, 2023
0.1.0 Oct 4, 2023

#105 in #com

21 downloads per month

GPL-3.0-only

8MB
167K SLoC

C 130K SLoC // 0.2% comments Visual Studio Project 19K SLoC C++ 11K SLoC // 0.1% comments Ada 1.5K SLoC // 0.2% comments Shell 1.5K SLoC // 0.3% comments Pascal 1K SLoC // 0.2% comments Visual Studio Solution 1K SLoC C# 878 SLoC // 0.4% comments Python 852 SLoC // 0.2% comments Bitbake 595 SLoC // 0.1% comments Automake 285 SLoC // 0.4% comments GNU Style Assembly 245 SLoC // 0.5% comments M4 117 SLoC // 0.7% comments Batch 110 SLoC // 0.2% comments Rust 66 SLoC // 0.1% comments Ebuild 17 SLoC // 0.1% comments Forge Config 5 SLoC

hxc_rs

This is a minimal rust wrapper over the libxcfe library https://github.com/jfdelnero/HxCFloppyEmulator. I have only implemented the functionalities needed for my other project https://github.com/cpcsdk/rust.cpclib (mainly to allow basm assembler to write in HFE image discs). I have not made sound choices regarding mutability: all non mutable objects on the rust-side are still mutable on the c-side. I may have memory leaks, even if I tried to avoid them.

Feel free to provide patches to improve the cover of the wrapper, fix mistakes, or anything else. I can gladly provide the ownership of the repository to someone more motivated than me to continue this task (I will only add what I need for my main project).

x86_64-pc-windows-gnu is the required toolchain for windows: cargo +nightly-x86_64-pc-windows-gnu test. This may be a string limitation for the dependent crates.

Dependencies