#contributions #image #safe-abstraction #cpclib #object #cpcsdk #libhxcfe #welcomed #assembly #memory-leaks

hxcfe

Rustty safe abstraction over hxcfe-sys. Unfinished work, contributions are welcomed.

7 releases

Uses new Rust 2024

new 0.2.0 Feb 21, 2026
0.1.5 Oct 8, 2023

#2392 in Filesystem


Used in 7 crates (2 directly)

GPL-3.0-only

12MB
203K SLoC

C 142K SLoC // 0.2% comments Visual Studio Project 22K SLoC C++ 12K SLoC // 0.1% comments Shell 9K SLoC // 0.2% comments M4 9K SLoC // 0.2% comments Rust 2.5K SLoC // 0.1% comments Ada 1.5K SLoC // 0.2% comments Visual Studio Solution 1K SLoC Pascal 1K SLoC // 0.2% comments C# 878 SLoC // 0.4% comments Python 856 SLoC // 0.2% comments Bitbake 595 SLoC // 0.1% comments Automake 328 SLoC // 0.4% comments GNU Style Assembly 245 SLoC // 0.5% comments Batch 110 SLoC // 0.2% comments JavaScript 30 SLoC // 0.4% 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).

Dependencies