gatekeeper-core
gatekeeper-core is a library for interfacing with gatekeeper NFC tags.
If you're interested in making a project using gatekeeper, you're free to
use this library, but you might prefer using
gatekeeper-members
which adds support for validating tags against the gatekeeper server,
getting secrets from environment variables, and provides a higher-level
interface that should reduce boilerplate for most common usecases.
Example
It's pretty easy to connect to a reader and find tags:
let mut gatekeeper_reader =
new
.expect;
for tag in gatekeeper_reader.get_nearby_tags
Check out the
examples
directory for a more comprehensive example.
Dependencies
Make sure you have libfreefare and libnfc installed. Loads of distributions package these.
If you're having trouble, try building these versions locally, which are known to work well: