2 releases
new 0.1.1 | Jan 9, 2025 |
---|---|
0.1.0 | Jan 9, 2025 |
#22 in #expose
245 downloads per month
28KB
619 lines
pgDog plugins
pgDog plugin system is based around shared libraries loaded at runtime.
These libraries can be written in any language as long as they are compiled to .so
(or .dylib
on Mac),
and can expose predefined C ABI functions.
This crate implements the bridge between the C ABI and pgDog, defines common C types and interface to use, and exposes internal pgDog configuration.
This crate is a C (and Rust) library that should be linked at compile time against your plugins.
Writing plugins
Examples of plugins written in C and Rust are available here.
lib.rs
:
pgDog plugin interface.
Dependencies
~0–6.5MB
~40K SLoC