c-plugin-example 0.1.1

Example of a Rust binary that loads a C dynamic library as a plugin
Documentation
1
2
3
4
5
6
7
8
9
10
// Compile with:
// clang -shared -undefined dynamic_lookup -o plugin.dynlib plugin.c

#include <stdint.h>

extern void foobar(int32_t v);

void entrypoint() {
    foobar(123);
}