Skip to content

Commit

Permalink
fix: add cargo rev & update f32->f64
Browse files Browse the repository at this point in the history
  • Loading branch information
Bingle committed Aug 22, 2022
1 parent 72774ea commit 59382f6
Show file tree
Hide file tree
Showing 9 changed files with 394 additions and 83 deletions.
58 changes: 29 additions & 29 deletions app/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions app/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ extern "C" {
retval: *mut sgx_status_t,
binary: *const u8,
binary_len: usize,
result_out: *mut i32,
result_out: *mut f64,
) -> sgx_status_t;
}

Expand Down Expand Up @@ -72,7 +72,7 @@ fn main() {

let binary = fs::read(WASM_FILE).unwrap();

let mut result_out = 0i32;
let mut result_out = 0f64;

let result = unsafe {
exec_wasm_test(
Expand Down
70 changes: 43 additions & 27 deletions enclave/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 9 additions & 8 deletions enclave/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,16 @@ default = []
[dependencies]
wasmi-impl = { path = "../wasmi-impl" }
wasmi = { version = "0.11.0", default-features = false }
serde-json-wasm = "0.3.2"

[target.'cfg(not(target_env = "sgx"))'.dependencies] # You can remove what you don't need, except types and tstd
sgx_types = { git = "https://github.com/apache/teaclave-sgx-sdk.git" }
sgx_tstd = { git = "https://github.com/apache/teaclave-sgx-sdk.git", features = ["backtrace"] }
sgx_tcrypto = { git = "https://github.com/apache/teaclave-sgx-sdk.git" }
sgx_trts = { git = "https://github.com/apache/teaclave-sgx-sdk.git" }
sgx_tseal = { git = "https://github.com/apache/teaclave-sgx-sdk.git" }
sgx_serialize = { git = "https://github.com/apache/teaclave-sgx-sdk.git" }
sgx_alloc = { git = "https://github.com/apache/teaclave-sgx-sdk.git" }
sgx_libc = { git = "https://github.com/apache/teaclave-sgx-sdk.git" }
sgx_types = { git = "https://github.com/apache/teaclave-sgx-sdk.git" , rev = "e8a9fc22939befa27ff67f5509b2c2dfe8499945" }
sgx_tstd = { git = "https://github.com/apache/teaclave-sgx-sdk.git", features = ["backtrace"], rev = "e8a9fc22939befa27ff67f5509b2c2dfe8499945" }
sgx_tcrypto = { git = "https://github.com/apache/teaclave-sgx-sdk.git" , rev = "e8a9fc22939befa27ff67f5509b2c2dfe8499945" }
sgx_trts = { git = "https://github.com/apache/teaclave-sgx-sdk.git" , rev = "e8a9fc22939befa27ff67f5509b2c2dfe8499945" }
sgx_tseal = { git = "https://github.com/apache/teaclave-sgx-sdk.git" , rev = "e8a9fc22939befa27ff67f5509b2c2dfe8499945" }
sgx_serialize = { git = "https://github.com/apache/teaclave-sgx-sdk.git" , rev = "e8a9fc22939befa27ff67f5509b2c2dfe8499945" }
sgx_alloc = { git = "https://github.com/apache/teaclave-sgx-sdk.git" , rev = "e8a9fc22939befa27ff67f5509b2c2dfe8499945" }
sgx_libc = { git = "https://github.com/apache/teaclave-sgx-sdk.git" , rev = "e8a9fc22939befa27ff67f5509b2c2dfe8499945" }

[patch.'https://github.com/apache/teaclave-sgx-sdk.git']
Loading

0 comments on commit 59382f6

Please sign in to comment.