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

feat(runtime): Wasmer 1.0 runner #3799

Merged
merged 60 commits into from
Feb 23, 2021
Merged
Changes from 1 commit
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
17c9c7d
initial add wasmer 1.0 and features
ailisp Jan 5, 2021
bef831c
wasmtime neard compiles
ailisp Jan 5, 2021
22a3610
wasmtime neard compiles
ailisp Jan 5, 2021
d248733
all driver code
ailisp Jan 5, 2021
4408a0e
wip wasmer 1.0
ailisp Jan 6, 2021
ee61fbc
translate unsafe wasmer 0.17 ctx.data as safe 1.0 myEnv.logic
ailisp Jan 7, 2021
7b82b8d
fix most compile errors except wasmer error conversion
ailisp Jan 7, 2021
cac1740
fix more errors, stuck in wasmer 1.0 cannot import native func return…
ailisp Jan 9, 2021
3e52892
fix HostFunction trait not implemented issue
ailisp Jan 9, 2021
e064e6a
fix HostFunction trait not implemented issue
ailisp Jan 9, 2021
cd5d291
fix compilation errors
ailisp Jan 9, 2021
746ea2b
fix vmlogic inject
ailisp Jan 11, 2021
a63ec4a
adding all into_vm_errors, fixed some tests
ailisp Jan 12, 2021
a83d0ab
avx check and no nan check needed now
ailisp Jan 12, 2021
e563ad3
fix two more tests
ailisp Jan 12, 2021
2d1c129
fix runner stuck infinite
ailisp Jan 14, 2021
6c7ad15
fix runtime error downcast error
ailisp Jan 14, 2021
6e064f6
refactor vmlogicerror into vmerror
ailisp Jan 14, 2021
11be303
fix runtime error on call initializer
ailisp Jan 14, 2021
beccd74
fix all vm error test
ailisp Jan 14, 2021
fc4aca9
rename VMKind::Wasmer to Wasmer0
ailisp Jan 15, 2021
b3264ee
add cranelift-frontend to cargo deny
ailisp Jan 15, 2021
c5417e8
resolve conflict
ailisp Jan 15, 2021
cbd5169
fix cargo deny
ailisp Jan 15, 2021
69a77e0
fix test workspace
ailisp Jan 15, 2021
43fb8a3
workaround all-features
ailisp Jan 15, 2021
20dbb3f
reuse import reference to vmlogicreference
ailisp Jan 15, 2021
d3f2ad2
test_stack_overflow for wasmer1
ailisp Jan 15, 2021
1a2c845
fix test_stack_overflow for wasmer1
ailisp Jan 15, 2021
672e029
Merge branch 'master' into wasmer-1.0
ailisp Jan 15, 2021
b802df2
upgrade to git wasmer to get internal of RuntimeError
ailisp Jan 16, 2021
5061b4c
test wasmer trap and user error
ailisp Jan 16, 2021
5d632f5
merge master
ailisp Jan 19, 2021
841482d
rename
ailisp Jan 20, 2021
50911ae
Merge branch 'master' into wasmer-1.0
ailisp Jan 20, 2021
0f0751e
Merge branch 'master' into wasmer-1.0
olonho Jan 27, 2021
1638987
fix a compilation error from merge
ailisp Feb 1, 2021
82f69a8
actix 0.9 also works, so undo it
ailisp Feb 2, 2021
d4c8ad3
merge master resolve conflict
ailisp Feb 3, 2021
d0f377b
enable ability to build neard with wasmer 1.0
ailisp Feb 3, 2021
f452f9d
cache in wasmer1
ailisp Feb 4, 2021
afa9b25
remove delay detector
ailisp Feb 5, 2021
df0b5bf
fix feature set for ci
ailisp Feb 5, 2021
1848478
use fork released wasmer
ailisp Feb 5, 2021
e202e37
merge master
ailisp Feb 5, 2021
6f32f4e
resolve conflict in Cargo.lock
ailisp Feb 5, 2021
bae0e08
cargo deny
ailisp Feb 5, 2021
7fc2454
wasmer 1.0.2
ailisp Feb 5, 2021
9ca118e
error into
ailisp Feb 12, 2021
56e3786
typo
ailisp Feb 12, 2021
51ffe38
precompile wasmer1
ailisp Feb 12, 2021
cc338ff
wasmer1 by default, optional wasmer 0
ailisp Feb 13, 2021
b1fb114
test pass again
ailisp Feb 13, 2021
e22752a
resolve conflict
ailisp Feb 13, 2021
365ccbf
fix all tests
ailisp Feb 17, 2021
ee1b5ea
wasmer0 as default, all vm enabled in tests
ailisp Feb 17, 2021
61b8514
fix cargo check all features
ailisp Feb 17, 2021
c565693
Merge branch 'master' into wasmer-1.0
ailisp Feb 17, 2021
d7e2e1c
nit
ailisp Feb 23, 2021
6cec70f
Merge branch 'master' into wasmer-1.0
ailisp Feb 23, 2021
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
Prev Previous commit
Next Next commit
fix HostFunction trait not implemented issue
  • Loading branch information
ailisp committed Jan 9, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 3e52892549c8c444940072b3bc0b912957472a6a
2 changes: 2 additions & 0 deletions runtime/near-vm-errors/src/lib.rs
Original file line number Diff line number Diff line change
@@ -272,6 +272,8 @@ pub enum VMLogicError {
EvmError(EvmError),
}

impl std::error::Error for VMLogicError {}

/// An error that is caused by an operation on an inconsistent state.
/// E.g. a deserialization error or an integer overflow.
#[derive(Debug, Clone, PartialEq, Eq, BorshDeserialize, BorshSerialize, Deserialize, Serialize)]