Include the wrapper for librustzcash
This commit is contained in:
parent
6b1ad46c9a
commit
4a82f9e6e0
5 changed files with 7 additions and 16 deletions
4
configure
vendored
Executable file
4
configure
vendored
Executable 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
|
|
@ -30,7 +30,7 @@ library:
|
|||
- text
|
||||
- foreign-rust
|
||||
pkg-config-dependencies:
|
||||
- rust_wrapper-uninstalled
|
||||
- rustzcash_wrapper-uninstalled
|
||||
|
||||
tests:
|
||||
zcash-haskell-test:
|
||||
|
|
|
@ -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'
|
||||
#}
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue