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

sys hxcadaptor-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

#10 in #cpclib

29 downloads per month
Used in 3 crates (2 directly)

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# 879 SLoC // 0.4% comments Python 853 SLoC // 0.2% comments Bitbake 596 SLoC // 0.1% comments Automake 286 SLoC // 0.4% comments GNU Style Assembly 246 SLoC // 0.5% comments M4 118 SLoC // 0.7% comments Batch 111 SLoC // 0.2% comments Rust 66 SLoC // 0.1% comments Ebuild 18 SLoC // 0.1% comments Forge Config 6 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