Crates.io | tp-sandbox |
lib.rs | tp-sandbox |
version | 0.8.2 |
source | src |
created_at | 2021-03-13 01:23:50.522509 |
updated_at | 2021-04-03 21:37:10.979893 |
description | This crate provides means to instantiate and execute wasm modules. |
homepage | https://core.tetcoin.org |
repository | https://github.com/tetcoin/tetcore |
max_upload_size | |
id | 368079 |
size | 31,522 |
This crate provides means to instantiate and execute wasm modules.
It works even when the user of this library executes from inside the wasm VM. In this case the same VM is used for execution of both the sandbox owner and the sandboxed module, without compromising security and without the performance penalty of full wasm emulation inside wasm.
This is achieved by using bindings to the wasm VM, which are published by the host API. This API is thin and consists of only a handful functions. It contains functions for instantiating modules and executing them, but doesn't contain functions for inspecting the module structure. The user of this library is supposed to read the wasm module.
When this crate is used in the std
environment all these functions are implemented by directly
calling the wasm VM.
Examples of possible use-cases for this library are not limited to the following:
License: Apache-2.0