Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wasm: add wasmtime support #43

Closed
wants to merge 3 commits into from
Closed

Conversation

abel-von
Copy link
Contributor

support wasmtime as the wasm runtime for webassembly sandbox.
it use async feature of wasmtime and launch the instance inside the process, without forking a new process.
and the limit of memory is supported by wasmtime ResourceLimiter.
the cpu limitation of wasmtime is made by a "fuel" machanism and I am not sure how to make it follow the cpu quota limitation of containers. so cpu limitation is still not supported.

@abel-von abel-von force-pushed the support-wasmtime-outside branch 2 times, most recently from 1c8ea30 to 2ec01c6 Compare July 13, 2023 03:30
abel-von added 3 commits July 13, 2023 14:09
The crate of "mach" which is indirectly dependence introduces by
wasmtime-runtime, is in the license of BSD-2-Clause, we have to allow
it, otherwise we can not use wasmtime.

The Modified or New BSD (or BSD 3-clause) license is the same as BSD-2,
but with an additional clause prohibiting the names of the authors from
being used to endorse or promote products relating to the software.

As BSD-3-Clause is allowed, we have to reason to deny BSD-2-Clause
otherwise some checks my get a name confliction error because some
functions is implemented in different features, and annotated by the
feature.
@abel-von abel-von force-pushed the support-wasmtime-outside branch from 2ec01c6 to d20f428 Compare July 13, 2023 06:11
@abel-von abel-von closed this Jul 13, 2023
@abel-von abel-von deleted the support-wasmtime-outside branch July 13, 2023 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant