iOS Build
This commit is contained in:
parent
7827f21f98
commit
e6a97c93d2
|
@ -74,14 +74,14 @@ hmac = { version = "0.12.1", optional = true }
|
|||
ed25519-bip32 = { version = "0.4.1", optional = true }
|
||||
ledger-transport-hid = { version = "0.9", optional = true }
|
||||
|
||||
allo-isolate = { version = "0.1" }
|
||||
once_cell = { version = "1.8.0" }
|
||||
android_logger = { version = "0.10.0" }
|
||||
allo-isolate = { version = "0.1", optional = true }
|
||||
once_cell = { version = "1.8.0", optional = true }
|
||||
android_logger = { version = "0.10.0", optional = true }
|
||||
|
||||
[features]
|
||||
ledger = ["ledger-apdu", "hmac", "ed25519-bip32", "ledger-transport-hid"]
|
||||
ledger_sapling = ["ledger"]
|
||||
# dart_ffi = ["allo-isolate", "once_cell", "android_logger"]
|
||||
dart_ffi = ["allo-isolate", "once_cell", "android_logger"]
|
||||
|
||||
# librustzcash synced to 35023ed8ca2fb1061e78fd740b640d4eefcc5edd
|
||||
|
||||
|
|
18
binding.h
18
binding.h
|
@ -1,7 +1,17 @@
|
|||
#include <stdarg.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#ifndef __APPLE__
|
||||
typedef char int8_t;
|
||||
typedef unsigned char uint8_t;
|
||||
typedef short int uint16_t;
|
||||
typedef long long int int64_t;
|
||||
typedef long long int uint64_t;
|
||||
typedef long long int uintptr_t;
|
||||
typedef long int int32_t;
|
||||
typedef long int uint32_t;
|
||||
typedef char bool;
|
||||
#endif
|
||||
typedef void *DartPostCObjectFnType;
|
||||
|
||||
void dummy_export(void);
|
||||
|
||||
void dart_post_cobject(DartPostCObjectFnType ptr);
|
||||
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
#ifndef __APPLE__
|
||||
typedef char int8_t;
|
||||
typedef unsigned char uint8_t;
|
||||
typedef short int uint16_t;
|
||||
typedef long long int int64_t;
|
||||
typedef long long int uint64_t;
|
||||
typedef long long int uintptr_t;
|
||||
typedef long int int32_t;
|
||||
typedef long int uint32_t;
|
||||
typedef char bool;
|
||||
#endif
|
||||
typedef void *DartPostCObjectFnType;
|
2
build.rs
2
build.rs
|
@ -7,7 +7,7 @@ fn main() {
|
|||
)
|
||||
.unwrap();
|
||||
|
||||
create_c_bindings();
|
||||
// create_c_bindings();
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
|
|
|
@ -13,6 +13,9 @@ use zcash_primitives::transaction::builder::Progress;
|
|||
|
||||
static mut POST_COBJ: Option<ffi::DartPostCObjectFnType> = None;
|
||||
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn dummy_export() {}
|
||||
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn dart_post_cobject(ptr: ffi::DartPostCObjectFnType) {
|
||||
POST_COBJ = Some(ptr);
|
||||
|
|
Loading…
Reference in New Issue