#cargo-build #build-script #link #cabal #foreign #haskell #ghc

build cabal-foreign-library

A library for Cargo build scripts to build and link a Cabal foreign-library as a Rust crate

4 releases

0.2.0 Nov 11, 2024
0.1.2 Nov 11, 2024
0.1.1 Nov 8, 2024
0.1.0 Nov 8, 2024

#322 in Build Utils

Download history 292/week @ 2024-11-05 117/week @ 2024-11-12 4/week @ 2024-11-19

229 downloads per month

MIT/Apache

13KB
245 lines

cabal-foreign-library

crates.io docs.rs

A Cargo build script library that helps to dynamically link a Rust project to a Cabal foreign library.

See a basic usage example.


lib.rs:

A library for Cargo build scripts to build and link a Cabal foreign library to Rust crates. The crate calls out to Cabal and GHC; all necesssary Haskell dependencies must be installed and managed separately.

Everything is a work-in-progress!

Example

For a basic usage example, see examples/basic.

Dependencies

~7–17MB
~261K SLoC