| Crates.io | libeyelink-sys |
| lib.rs | libeyelink-sys |
| version | 0.1.4 |
| created_at | 2020-07-18 23:47:59.500087+00 |
| updated_at | 2020-10-03 02:16:01.548179+00 |
| description | Rust FFI bindings for the Linux SR Research Eyelink SDK. |
| homepage | |
| repository | https://github.com/lukehsiao/libeyelink-sys |
| max_upload_size | |
| id | 266707 |
| size | 1,028,225 |
The libeyelink-sys crate provides declarations and linkage for the
libeyelink_core and libeyelink_core_graphics C libraries. Following the
*-sys package conventions, the libeyelink-sys crate does not define
higher-level or safe abstractions over the native library functions.
The bindings were generated automatically with bindgen:
bindgen /usr/include/core_expt.h -o src/base.rs --with-derive-default
If the sdl-graphics feature is enabled, the bindings are generated from:
bindgen /usr/include/sdl_expt.h -o src/sdl-graphics.rs --blacklist-function '^str.*' --blacklist-function '.*cvt.*' --with-derive-default
You must have the Linux Eyelink SDK installed from SR Research. Steps to install:
$ wget -O - "http://download.sr-support.com/software/dists/SRResearch/SRResearch_key" | sudo apt-key add -
$ sudo add-apt-repository "deb http://download.sr-support.com/software SRResearch main"
$ sudo apt-get update
$ sudo apt-get install eyelink-display-software
Alternatively, a tar of DEBs is available at this link.This crate has only been tested on Ubuntu 18.04.
Add libeyelink-sys as a dependency in Cargo.toml:
[dependencies]
libeyelink-sys = "0.1"
The best source for help on the API is the native documentation: