Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Separate wasmi and wasmer sandbox implementations into their own modules #10563

Merged
merged 39 commits into from
Feb 11, 2022
Merged
Show file tree
Hide file tree
Changes from 35 commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
6603e3c
Moves wasmi specific `ImportResolver` and `MemoryTransfer` impls to s…
0x7CFE Dec 7, 2021
29510ea
Splits context store environmental, moves impl `Externals` to wasmi b…
0x7CFE Dec 10, 2021
bb0c52f
Adds wasmer sandbox backend stub module
0x7CFE Dec 14, 2021
8f213b8
Move sandbox impl code to backend specific modules
0x7CFE Dec 16, 2021
79ec079
Moves wasmi stuff
0x7CFE Dec 21, 2021
d67dc0c
Fixes value conversion
0x7CFE Dec 21, 2021
87c8c5c
Makes it all compile
0x7CFE Dec 21, 2021
58d80c9
Remove `with_context_store`
0x7CFE Dec 22, 2021
9bead33
Merge remote-tracking branch 'origin/master' into dk-sandbox-refactoring
0x7CFE Dec 22, 2021
6b1ed45
Moves `WasmerBackend` to the impl
0x7CFE Dec 27, 2021
3d60639
Reformat the source
0x7CFE Dec 28, 2021
540df2b
Merge remote-tracking branch 'origin/master' into dk-sandbox-refactoring
0x7CFE Dec 28, 2021
efe060d
Moves wasmer MemoryWrapper
0x7CFE Dec 28, 2021
d365538
Reformats the source
0x7CFE Dec 28, 2021
450522a
Merge remote-tracking branch 'origin/master' into dk-sandbox-refactoring
0x7CFE Jan 18, 2022
2458d78
Fixes mutability
0x7CFE Jan 18, 2022
b0fe4c2
Moves backend impls to a submodule
0x7CFE Jan 19, 2022
85ed181
Fix visibility
0x7CFE Jan 19, 2022
548c592
Reformat the source
0x7CFE Jan 19, 2022
e1d4a35
Feature gate wasmer backend module
0x7CFE Jan 19, 2022
8365745
Moves wasmi memory allocation to backend module
0x7CFE Jan 19, 2022
414fccf
Rename WasmerBackend to Backend
0x7CFE Jan 20, 2022
f8282e8
Refactor dispatch result decoding, get rid of Wasmi types in common s…
0x7CFE Jan 21, 2022
13d486c
Reformat the source
0x7CFE Jan 21, 2022
23692a5
Merge remote-tracking branch 'origin/master' into dk-sandbox-refactoring
0x7CFE Jan 27, 2022
6b5a777
Remove redundant prefixes in backend functions
0x7CFE Jan 27, 2022
1401152
Remove wasmer-sandbox from default features
0x7CFE Jan 27, 2022
70482bf
Merge remote-tracking branch 'origin/master' into dk-sandbox-refactoring
0x7CFE Feb 1, 2022
67d5560
Post-review changes
0x7CFE Feb 2, 2022
b1a7132
Add conversion soundness proof
0x7CFE Feb 3, 2022
9864311
Remove redundant prefix
0x7CFE Feb 3, 2022
710eb97
Removes now redundant clone_inner
0x7CFE Feb 3, 2022
66aacf8
Merge remote-tracking branch 'origin/master' into dk-sandbox-refactoring
0x7CFE Feb 7, 2022
c74dd4a
Add `Error::SandboxBackend`, refactor invoke result
0x7CFE Feb 9, 2022
067e3fa
Fix comments
0x7CFE Feb 9, 2022
18bfb1b
Rename `Error::SandboxBackend` to `Sandbox`
0x7CFE Feb 9, 2022
989e43e
Merge remote-tracking branch 'origin/master' into dk-sandbox-refactoring
0x7CFE Feb 9, 2022
33f13f9
Simplifies logic in `wasmer_backend::invoke`
0x7CFE Feb 10, 2022
ea65fa4
Fixes memory management
0x7CFE Feb 10, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions client/executor/common/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ pub enum Error {
#[error("Unserializable data encountered")]
InvalidData(#[from] sp_serializer::Error),

#[error(transparent)]
Trap(#[from] wasmi::Trap),

#[error(transparent)]
Wasmi(#[from] wasmi::Error),

#[error("Sandbox backend error: {0}")]
SandboxBackend(String),
0x7CFE marked this conversation as resolved.
Show resolved Hide resolved

#[error("Error calling api function: {0}")]
ApiError(Box<dyn std::error::Error + Send + Sync>),

Expand Down
Loading