Include the wrapper for librustzcash

This commit is contained in:
Rene Vergara 2023-04-15 18:54:54 -05:00
parent 6b1ad46c9a
commit 4a82f9e6e0
Signed by: pitmutt
GPG Key ID: 65122AD495A7F5B2
5 changed files with 7 additions and 16 deletions

4
configure vendored Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
export PKG_CONFIG_PATH=$(pwd)/librustzcash-wrapper/target/x86_64-unknown-linux-gnu/debug
export LD_LIBRARY_PATH=$(pwd)/librustzcash-wrapper/target/x86_64-unknown-linux-gnu/debug

View File

@ -30,7 +30,7 @@ library:
- text
- foreign-rust
pkg-config-dependencies:
- rust_wrapper-uninstalled
- rustzcash_wrapper-uninstalled
tests:
zcash-haskell-test:

View File

@ -1,12 +0,0 @@
module C.GettingStarted (rustWrapperAdd) where
#include "rust_wrapper.h"
import Data.Word
{# fun pure unsafe rust_wrapper_add as rustWrapperAdd
{ `Word64'
, `Word64'
}
-> `Word64'
#}

View File

@ -5,7 +5,7 @@
module C.Zcash where
#include "rust_wrapper.h"
#include "rustzcash_wrapper.h"
import qualified Data.ByteString as BS
import Codec.Borsh

View File

@ -25,7 +25,6 @@ source-repository head
library
exposed-modules:
C.GettingStarted
C.Zcash
Zcash
other-modules:
@ -33,7 +32,7 @@ library
hs-source-dirs:
src
pkgconfig-depends:
rust_wrapper-uninstalled
rustzcash_wrapper-uninstalled
build-depends:
base >=4.7 && <5
, borsh