Add missing FFI modules

New FFI modules required for `libzcash_script`.
This commit is contained in:
Janito Vaqueiro Ferreira Filho 2021-06-17 14:01:10 +00:00
parent 1765456794
commit 337f5eb182
6 changed files with 24 additions and 1 deletions

View File

@ -50,8 +50,16 @@ path = "src/lib.rs"
external-secp = []
[dependencies]
libc="0.2"
blake2b_simd = "0.5.10"
halo2 = "0.1.0-beta.1"
incrementalmerkletree = "0.1"
libc = "0.2"
memuse = "0.2"
orchard = "0.0"
rand_core = "0.6"
tracing = "0.1"
zcash_note_encryption = "0.0"
zcash_primitives = "0.5"
[build-dependencies]
cc = { version = ">= 1.0.36", features = ["parallel"] }
@ -96,3 +104,9 @@ file="CHANGELOG.md"
search="<!-- next-url -->"
replace="<!-- next-url -->\n[Unreleased]: https://github.com/ZcashFoundation/{{crate_name}}/compare/{{tag_name}}...HEAD"
exactly=1
[patch.crates-io]
incrementalmerkletree = { git = "https://github.com/zcash/incrementalmerkletree", rev = "b7bd6246122a6e9ace8edb51553fbf5228906cbb" }
orchard = { git = "https://github.com/zcash/orchard.git", rev = "2c8241f25b943aa05203eacf9905db117c69bd29" }
zcash_note_encryption = { git = "https://github.com/zcash/librustzcash.git", rev = "53d0a51d33a421cb76d3e3124d1e4c1c9036068e" }
zcash_primitives = { git = "https://github.com/zcash/librustzcash.git", rev = "53d0a51d33a421cb76d3e3124d1e4c1c9036068e" }

View File

@ -6,7 +6,12 @@
include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
static mut ORCHARD_VK: Option<orchard::circuit::VerifyingKey> = None;
mod blake2b;
mod orchard_ffi;
mod streams_ffi;
mod transaction_ffi;
#[cfg(test)]
mod tests {

1
src/orchard_ffi Symbolic link
View File

@ -0,0 +1 @@
../depend/zcash/src/rust/src/orchard_ffi

1
src/orchard_ffi.rs Symbolic link
View File

@ -0,0 +1 @@
../depend/zcash/src/rust/src/orchard_ffi.rs

1
src/streams_ffi.rs Normal file
View File

@ -0,0 +1 @@
include!("../depend/zcash/src/rust/src/streams_ffi.rs");

1
src/transaction_ffi.rs Normal file
View File

@ -0,0 +1 @@
include!("../depend/zcash/src/rust/src/transaction_ffi.rs");