#wrapper #hx-c-floppy-emulator #bindings #github #com #contributions #libhxcfe

hxcfe

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

6 releases

0.1.5 Oct 8, 2023
0.1.4 Oct 7, 2023

#4 in #contributions

39 downloads per month

GPL-3.0-only

8.5MB
168K 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 Rust 829 SLoC // 0.0% 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 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

~9–17MB
~237K SLoC