scannit-core, a Rust library for reading Helsinki Travel Cards
First, the repo: https://github.com/pingzing/scannit-core/
Second: hi! I've been working on a Rust library to read the travel cards that the Helsinki public transit system uses. I had written a C# library that did the same for the older version of the cards, but they released a newer version, and I thought it might be fun to try to make something more cross-platform.
Currently, the pure-Rust library works as intended, and the repo includes a tiny CLI application written in Rust that demonstrates getting data off the card and using the library.
It also includes an FFI subproject which projects the library's data structures into something more FFI friendly. I've also got a functional set of C# bindings that use the FFI project.
I'd really appreciate some feedback/code reviewing, especially around the FFI parts of the project. That was where I struggled the most, and I can't shake the nagging feeling that I'm missing some important things (I know I'm missing any kind of error checking/reporting).
Posted Aug 17, 2019, 2:08 PM UTC
If I had an NFC reader I'd check this out, nice work.