I was wondering what is required to use a third party crate with this sdk. 
For example wasmer-runtime.
I know that there exists a repo with forked crates, but I wanted to know if it 
was possible to do the porting myself.

When I try to use Wasmer inside an enclave I get the duplicate lang item errors:

```
error: duplicate lang item in crate `std` (which `wasmer_runtime` depends on): 
`f32_runtime`.
  |
  = note: first defined in crate `sgx_tstd` (which `sgx_addition` depends on).

error: duplicate lang item in crate `std` (which `wasmer_runtime` depends on): 
`f64_runtime`.
  |
  = note: first defined in crate `sgx_tstd` (which `sgx_addition` depends on).

error: duplicate lang item in crate `std` (which `wasmer_runtime` depends on): 
`panic_impl`.
  |
  = note: first defined in crate `sgx_tstd` (which `sgx_addition` depends on).

error: duplicate lang item in crate `std` (which `wasmer_runtime` depends on): 
`begin_panic`.
  |
  = note: first defined in crate `sgx_tstd` (which `sgx_addition` depends on).

error: duplicate lang item in crate `std` (which `wasmer_runtime` depends on): 
`oom`.
  |
  = note: first defined in crate `sgx_tstd` (which `sgx_addition` depends on).
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave-sgx-sdk/issues/208

Reply via email to