Skip to content

laurci/so-loader

Repository files navigation

so-loader

Disclaimer: This is a work in progress. It's not ready for production use. I don't guarantee that I will finish this project.

This project is an auto-loader for FFIs. It only supports the .so format and the Linux OS.

Instead of having to manually write out the functions and types for functions, this library will automatically read the debug symfols from the .so file and generate the FFI for you.

Setup

This library only supports the .so format and the Linux OS.

You also need to have dwarfdump installed. This is used to read the debug symbols from the .so file.

Building and runnning

To build the project run yarn build. The outputs of the build will be available in the dist directory. To watch the source and build on change run yarn build --watch.

The project targets Node as it's runtime, so it's as easy as node . to run it. (This starts dist/index.js).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published