Crate cabal_foreign_library

Source
Expand description

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.

Re-exports§

pub use bindgen;

Structs§

Build
A builder for a Cabal library.
Lib
A handler for a library built by Cabal.

Enums§

Error
Type for errors that may occur.
InvocationError
An error that occurs when invoking cabal or ghc-pkg.
RTSVersion
The version of the Haskell runtime library.

Type Aliases§

BindgenBuilder
Builder for the Rust bindings for the Haskell library.
Result
Alias for Result.