You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@teaclave.apache.org by Qinkun Bao <no...@github.com.INVALID> on 2022/01/08 06:07:42 UTC
[apache/incubator-teaclave] Move execution context into a seperate crate (PR #598)
## Description
Teaclave execution crate exports several APIs such as `reset_thread_context`, `reset_thread_context`, and `c_open_input`. These APIs are used by statically linked non-rust executors like `mesapy` and `wamr` to read/write files from the execution service.
However, the above APIs are not accessible to the built-in functions because build-in functions are in a different crate `teaclave_function `. `teaclave_function` is the dependency of the crate `teaclave execution`.
This PR moves these APIs into a separate crate so build-in functions can invoke these APIs directly.
## How has this been tested?
CI test.
## Checklist
* [x] Fork the repo and create your branch from `master`.
* [x] If you've added code that should be tested, add tests.
* [x] Ensure the tests pass (see CI results).
* [x] Make sure your code lints/format.
You can view, comment on, or merge this pull request online at:
https://github.com/apache/incubator-teaclave/pull/598
-- Commit Summary --
* Move execution context into a seperate crate
-- File Changes --
M executor/Cargo.toml (4)
A executor/context/Cargo.toml (62)
R executor/context/src/context.rs (0)
A executor/context/src/lib.rs (28)
M executor/src/lib.rs (3)
M executor/src/mesapy.rs (6)
M executor/src/wamr.rs (8)
M function/Cargo.toml (2)
M tests/unit/enclave/Cargo.toml (3)
M tests/unit/enclave/src/lib.rs (1)
-- Patch Links --
https://github.com/apache/incubator-teaclave/pull/598.patch
https://github.com/apache/incubator-teaclave/pull/598.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave/pull/598
You are receiving this because you are subscribed to this thread.
Message ID: <apache/incubator-teaclave/pull/598@github.com>
Re: [apache/incubator-teaclave] Move execution context into a seperate crate (PR #598)
Posted by Mingshen Sun <no...@github.com.INVALID>.
Merged #598 into master.
--
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave/pull/598#event-5861002217
You are receiving this because you are subscribed to this thread.
Message ID: <ap...@github.com>