#github #com #bindings #hx-c-floppy-emulator #libhxcfe #hxcfe #jfdelnero

sys hxcfe-sys

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

#218 in #com


Used in hxcfe

GPL-3.0-only

16MB
335K SLoC

C 260K SLoC // 0.2% comments Visual Studio Project 37K SLoC C++ 22K SLoC // 0.1% comments Ada 3.5K SLoC // 0.2% comments Shell 2.5K SLoC // 0.3% comments Pascal 2K SLoC // 0.2% comments Visual Studio Solution 2K SLoC C# 2K SLoC // 0.4% comments Python 1.5K SLoC // 0.2% comments Bitbake 1K SLoC // 0.1% comments Automake 571 SLoC // 0.4% comments GNU Style Assembly 491 SLoC // 0.5% comments M4 235 SLoC // 0.7% comments Batch 221 SLoC // 0.2% comments Rust 127 SLoC // 0.1% comments Ebuild 35 SLoC // 0.1% comments Forge Config 11 SLoC Poke 1 SLoC

Contains (static library, 79KB) libadf.a, (obscure autoconf code, 18KB) configure.ac, (static library, 18KB) ftd2xx.lib, (obscure autoconf code, 1KB) configure.ac

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