mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-21 12:41:32 +00:00
Require that imported functions must be Send
This commit is contained in:
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
## **[Unreleased]**
|
## **[Unreleased]**
|
||||||
|
|
||||||
|
- [#1161](https://github.com/wasmerio/wasmer/pull/1161) Require imported functions to be `Send`. This is a breaking change that fixes a soundness issue in the API.
|
||||||
|
|
||||||
## 0.13.1 - 2020-01-16
|
## 0.13.1 - 2020-01-16
|
||||||
- Fix bug in wapm related to the `package.wasmer_extra_flags` entry in the manifest
|
- Fix bug in wapm related to the `package.wasmer_extra_flags` entry in the manifest
|
||||||
|
|
||||||
|
@ -430,7 +430,7 @@ macro_rules! impl_traits {
|
|||||||
$( $x: WasmExternType, )*
|
$( $x: WasmExternType, )*
|
||||||
Rets: WasmTypeList,
|
Rets: WasmTypeList,
|
||||||
Trap: TrapEarly<Rets>,
|
Trap: TrapEarly<Rets>,
|
||||||
FN: Fn(&mut vm::Ctx $( , $x )*) -> Trap + 'static,
|
FN: Fn(&mut vm::Ctx $( , $x )*) -> Trap + 'static + Send,
|
||||||
{
|
{
|
||||||
#[allow(non_snake_case)]
|
#[allow(non_snake_case)]
|
||||||
fn to_raw(self) -> (NonNull<vm::Func>, Option<NonNull<vm::FuncEnv>>) {
|
fn to_raw(self) -> (NonNull<vm::Func>, Option<NonNull<vm::FuncEnv>>) {
|
||||||
@ -545,7 +545,7 @@ macro_rules! impl_traits {
|
|||||||
$( $x: WasmExternType, )*
|
$( $x: WasmExternType, )*
|
||||||
Rets: WasmTypeList,
|
Rets: WasmTypeList,
|
||||||
Trap: TrapEarly<Rets>,
|
Trap: TrapEarly<Rets>,
|
||||||
FN: Fn($( $x, )*) -> Trap + 'static,
|
FN: Fn($( $x, )*) -> Trap + 'static + Send,
|
||||||
{
|
{
|
||||||
#[allow(non_snake_case)]
|
#[allow(non_snake_case)]
|
||||||
fn to_raw(self) -> (NonNull<vm::Func>, Option<NonNull<vm::FuncEnv>>) {
|
fn to_raw(self) -> (NonNull<vm::Func>, Option<NonNull<vm::FuncEnv>>) {
|
||||||
|
Reference in New Issue
Block a user