1
0
Fork 0
mirror of synced 2025-09-23 12:18:44 +00:00

fix imports in zokrates_js

This commit is contained in:
dark64 2020-03-04 20:41:15 +01:00
parent efecfedc8b
commit 95c11caeb5
3 changed files with 9 additions and 3 deletions

View file

@ -934,6 +934,10 @@ dependencies = [
"zokrates_field 0.3.5",
]
[[package]]
name = "zokrates_common"
version = "0.1.0"
[[package]]
name = "zokrates_core"
version = "0.4.2"
@ -954,6 +958,7 @@ dependencies = [
"serde_derive 1.0.104 (registry+https://github.com/rust-lang/crates.io-index)",
"serde_json 1.0.48 (registry+https://github.com/rust-lang/crates.io-index)",
"typed-arena 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
"zokrates_common 0.1.0",
"zokrates_embed 0.1.1",
"zokrates_field 0.3.5",
"zokrates_pest_ast 0.1.3",
@ -994,6 +999,7 @@ dependencies = [
"serde_json 1.0.48 (registry+https://github.com/rust-lang/crates.io-index)",
"wasm-bindgen 0.2.58 (registry+https://github.com/rust-lang/crates.io-index)",
"zokrates_abi 0.1.1",
"zokrates_common 0.1.0",
"zokrates_core 0.4.2",
"zokrates_field 0.3.5",
]

View file

@ -14,6 +14,7 @@ serde = { version = "^1.0.59", features = ["derive"] }
serde_json = "1.0"
wasm-bindgen = { version = "0.2.46", features = ["serde-serialize"] }
zokrates_core = { path = "../zokrates_core", features = ["wasm"] }
zokrates_common = { path = "../zokrates_common" }
zokrates_field = { path = "../zokrates_field" }
zokrates_abi = { path = "../zokrates_abi" }
console_error_panic_hook = "0.1.5"

View file

@ -4,9 +4,8 @@ use serde_json::to_string_pretty;
use std::path::PathBuf;
use wasm_bindgen::prelude::*;
use zokrates_abi::{parse_strict, Decode, Encode, Inputs};
use zokrates_core::compile::{
compile as core_compile, CompilationArtifacts, CompileError, Resolver,
};
use zokrates_common::Resolver;
use zokrates_core::compile::{compile as core_compile, CompilationArtifacts, CompileError};
use zokrates_core::imports::Error;
use zokrates_core::ir;
use zokrates_core::proof_system::{self, ProofSystem};