Skip to content

Commit 59382f6

Browse files
author
Bingle
committed
fix: add cargo rev & update f32->f64
1 parent 72774ea commit 59382f6

File tree

9 files changed

+394
-83
lines changed

9 files changed

+394
-83
lines changed

app/Cargo.lock

Lines changed: 29 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ extern "C" {
3333
retval: *mut sgx_status_t,
3434
binary: *const u8,
3535
binary_len: usize,
36-
result_out: *mut i32,
36+
result_out: *mut f64,
3737
) -> sgx_status_t;
3838
}
3939

@@ -72,7 +72,7 @@ fn main() {
7272

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

75-
let mut result_out = 0i32;
75+
let mut result_out = 0f64;
7676

7777
let result = unsafe {
7878
exec_wasm_test(

enclave/Cargo.lock

Lines changed: 43 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

enclave/Cargo.toml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,16 @@ default = []
1313
[dependencies]
1414
wasmi-impl = { path = "../wasmi-impl" }
1515
wasmi = { version = "0.11.0", default-features = false }
16+
serde-json-wasm = "0.3.2"
1617

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

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

0 commit comments

Comments
 (0)