Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/laurci/so-loader


https://github.com/laurci/so-loader

Last synced: 30 days ago
JSON representation

Awesome Lists containing this project

README

        

# 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`).