Add storage API for NativeCallContext.

This commit is contained in:
Stephen Chung
2022-11-07 16:19:10 +08:00
parent 0c79471fd3
commit b4529b6a64
3 changed files with 83 additions and 47 deletions

View File

@@ -41,6 +41,11 @@ New features
* `Scope` is now serializable and deserializable via `serde`.
### Store and recreate `NativeCallContext`
* A convenient API is added to store a `NativeCallContext` into a new `NativeCallContextStore` type.
* This allows a `NativeCallContext` to be stored and recreated later on.
### Call native Rust functions in `NativeCallContext`
* `NativeCallContext::call_native_fn` is added to call registered native Rust functions only.