From fa49e0bf71ccd4bc98df0fa83546250c1b849e2e Mon Sep 17 00:00:00 2001 From: stuebinm Date: Sun, 11 Apr 2021 03:37:32 +0200 Subject: simple ffi with rust and haskell so far, only calling rust from haskell, not the other way round. --- rusty-haskell/haskell/rust-haskell-ffi.cabal | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 rusty-haskell/haskell/rust-haskell-ffi.cabal (limited to 'rusty-haskell/haskell/rust-haskell-ffi.cabal') diff --git a/rusty-haskell/haskell/rust-haskell-ffi.cabal b/rusty-haskell/haskell/rust-haskell-ffi.cabal new file mode 100644 index 0000000..c540b57 --- /dev/null +++ b/rusty-haskell/haskell/rust-haskell-ffi.cabal @@ -0,0 +1,26 @@ +cabal-version: >=1.10 +-- Initial package description 'rust-haskell-ffi.cabal' generated by 'cabal +-- init'. For further documentation, see +-- http://haskell.org/cabal/users-guide/ + +name: rust-haskell-ffi +version: 0.1.0.0 +-- synopsis: +-- description: +-- bug-reports: +-- license: +license-file: LICENSE +author: stuebinm +maintainer: stuebinm@disroot.org +-- copyright: +-- category: +build-type: Simple +extra-source-files: CHANGELOG.md + +executable rust-haskell-ffi + main-is: src/Main.hs + other-extensions: ForeignFunctionInterface + build-depends: base >= 4.7 && < 5 + default-language: Haskell2010 + extra-libraries: rustlib, pthread + extra-lib-dirs: ../rust/target/release -- cgit v1.2.3