Code Monkey home page Code Monkey logo

pafe.rs's Introduction

pafe for Rust

This crate provides bindings for libpafe, a C library for interacting with Sony PaSoRi USB devices. These devices are USB readers for FeliCa IC cards, a kind of contactless smart card which is widely used in Japan - particularly for Japanese transit cards like Suica and the Edy electronic wallet.

There are two crates in this repo: pafe-sys, which provides low-level bindings to libpafe, and pafe, which provides high-level Rustic bindings. pafe-sys covers roughly 100% of libpafe's functionality, while pafe is still very incomplete.

Usage

You need to have a copy of libpafe installed to build this crate. If you use Homebrew on Mac, you can get it by running:

brew install mistydemeo/formulae/libpafe

pafe-sys

The second crate included in this repo, pafe-sys, is an automatically-generated low-level binding to libpafe with no niceties. I've lightly altered the types generated by rust-bindgen to fix some incompatibilities, but it's otherwise untouched. No documentation is provided since it maps exactly to the original C library; please refer to the upstream repository for more information.

I want to help!

Thank you! I'm still in the early stages of working on this, so the project structure may change frequently. PRs that add more high-level mappings of the lower-level functions are welcome.

License

GPL 2.0, matching libpafe itself.

pafe.rs's People

Contributors

mistydemeo avatar near129 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.