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
|
- text
|
||||||
- foreign-rust
|
- foreign-rust
|
||||||
pkg-config-dependencies:
|
pkg-config-dependencies:
|
||||||
- rust_wrapper-uninstalled
|
- rustzcash_wrapper-uninstalled
|
||||||
|
|
||||||
tests:
|
tests:
|
||||||
zcash-haskell-test:
|
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
|
module C.Zcash where
|
||||||
|
|
||||||
#include "rust_wrapper.h"
|
#include "rustzcash_wrapper.h"
|
||||||
|
|
||||||
import qualified Data.ByteString as BS
|
import qualified Data.ByteString as BS
|
||||||
import Codec.Borsh
|
import Codec.Borsh
|
||||||
|
|
|
@ -25,7 +25,6 @@ source-repository head
|
||||||
|
|
||||||
library
|
library
|
||||||
exposed-modules:
|
exposed-modules:
|
||||||
C.GettingStarted
|
|
||||||
C.Zcash
|
C.Zcash
|
||||||
Zcash
|
Zcash
|
||||||
other-modules:
|
other-modules:
|
||||||
|
@ -33,7 +32,7 @@ library
|
||||||
hs-source-dirs:
|
hs-source-dirs:
|
||||||
src
|
src
|
||||||
pkgconfig-depends:
|
pkgconfig-depends:
|
||||||
rust_wrapper-uninstalled
|
rustzcash_wrapper-uninstalled
|
||||||
build-depends:
|
build-depends:
|
||||||
base >=4.7 && <5
|
base >=4.7 && <5
|
||||||
, borsh
|
, borsh
|
||||||
|
|
Loading…
Reference in a new issue