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

https://github.com/mirryi/cabal-foreign-library

Build and link a Cabal foreign-library to a Rust crate
https://github.com/mirryi/cabal-foreign-library

cabal cargo ffi foreign-library ghc haskell

Last synced: 19 days ago
JSON representation

Build and link a Cabal foreign-library to a Rust crate

Awesome Lists containing this project

README

        

# cabal-foreign-library

![crates.io](https://img.shields.io/crates/v/cabal-foreign-library)
![docs.rs](https://img.shields.io/docsrs/cabal-foreign-library)

> [!WARNING]
> The current state of this is very bare-bones and very much a work-in-progress.

A Cargo [build script](https://doc.rust-lang.org/cargo/reference/build-scripts.html) library that
helps to dynamically link a Rust project to a Cabal [foreign library](https://cabal.readthedocs.io/en/3.4/cabal-package.html#foreign-libraries).

See [`examples/basic`](./examples/basic) for a basic usage example.