4 releases

0.2.2 Mar 8, 2020
0.2.1 Mar 1, 2020
0.2.0 Feb 9, 2020
0.1.0 Dec 14, 2019

#44 in #plugin-api


Used in 2 crates

Custom license

39KB
601 lines

KPAL Plugins

Docs.rs Crates.io

A library that lets you incorporate new peripherals into KPAL.

Overview

kpal-plugin provides the data types and functions that allow you to write your own plugin for KPAL. A plugin provides the common interface between the KPAL daemon and a specific peripheral. You expose functions through the library that are part of the plugin API, and these in functions call your own custom code that work with your peripheral.

Plugins are implemented as shared libraries (.so files on Linux).

Getting started

Check out the examples for ideas on how to write a plugin.


lib.rs:

The KPAL plugin crate provides tools to write your own KPAL plugins.

See the examples folder for ideas on how to implement the datatypes and methods defined in this library.

Dependencies

~2–11MB
~100K SLoC