191 Commits

Author SHA1 Message Date
Valery Antopol
a8f5545edf wip: intoduce Store, start adding it to signatures, update wasmer backend so it compiles and passes tests 2022-10-31 01:03:29 +03:00
Valery Antopol
b51f62a2b0 remove unused code 2022-10-28 05:36:47 +03:00
Valery Antopol
2d7d78e392 start implementing wasmtime backend + simplify wasm traits a little bit 2022-10-28 05:31:54 +03:00
Valery Antopol
a1cb2085d6 add skeleton of js wasm backend for marine 2022-10-28 02:49:59 +03:00
Valery Antopol
4646d9cca5 move import traits to a separate file 2022-10-25 05:11:36 +03:00
Valery Antopol
6e3ba60e6d refactor short type names to long names, group types 2022-10-24 17:27:34 +03:00
Valery Antopol
5fe5d2aeb0 Revert "wip"
This reverts commit d9d6b39c56e02d7370dc46773d8e151ac24d3178.
2022-10-24 17:12:17 +03:00
Valery Antopol
50e438c051 revert import_object change 2022-10-24 17:12:09 +03:00
Valery Antopol
03393545cc
fix(runtime): detect mapped/preopened dirs conflicts before wasmer-wasi crashes (#223) 2022-10-18 16:56:42 +03:00
Valery Antopol
d765d81fdc wip 2022-10-07 18:24:03 +03:00
Valery Antopol
d9d6b39c56 wip 2022-09-30 17:20:28 +03:00
Valery Antopol
6834c3fef0 fix build with all features 2022-09-27 17:02:49 +03:00
Valery Antopol
4cd6abef1d fmt 2022-09-27 16:53:00 +03:00
Valery Antopol
c9fcf7fe90 fix cli build 2022-09-27 16:49:53 +03:00
Valery Antopol
1b546537f3 marine-core tests are passing 2022-09-27 16:43:03 +03:00
Valery Antopol
40cb5f3867 reach successful compilation 2022-09-27 14:32:00 +03:00
Valery Antopol
c28f2d4d90 almost fixed build 2022-09-21 03:37:09 +03:00
Valery Antopol
79d4e5f3fa Merge branch 'master' into marine-web-milestone2
# Conflicts:
#	Cargo.lock
#	core/Cargo.toml
#	core/src/config.rs
#	core/src/host_imports/imports.rs
#	core/src/marine_core.rs
#	core/src/module/marine_module.rs
#	core/src/module/mod.rs
#	core/tests/greeting.rs
#	core/tests/records.rs
#	core/tests/redis_sqlite.rs
#	crates/fluence-app-service/src/config.rs
#	crates/fluence-app-service/src/raw_toml_config.rs
#	crates/fluence-app-service/src/service.rs
#	crates/it-parser/Cargo.toml
#	crates/wasmer-backend/src/memory.rs
#	crates/wasmer-backend/src/memory_access.rs
#	fluence-app-service/Cargo.toml
#	fluence-faas/tests/records.rs
#	marine/Cargo.toml
#	marine/src/config/marine_config.rs
#	marine/src/config/to_marine_config.rs
#	marine/src/host_imports/call_parameters.rs
#	marine/src/host_imports/logger/log_utf8_string_impl.rs
#	marine/src/host_imports/mounted_binaries.rs
#	marine/src/marine.rs
#	marine/tests/arguments_passing.rs
#	marine/tests/arrays_passing.rs
#	marine/tests/call_parameters.rs
#	marine/tests/greeting.rs
2022-09-20 01:52:16 +03:00
Valery Antopol
fd47800cca
chore(build): fix clippy warnings (#213) 2022-09-19 19:13:38 +03:00
renovate[bot]
684bf7cb38
Update Rust crate semver to v1 (#198)
* Update Rust crate semver to v1

* bump all the deps

* update wasmer-it and fix build

* bump more versions + fix marine-js

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Valery Antopol <valery.antopol@gmail.com>
2022-09-13 16:25:11 +03:00
Valery Antopol
853bc595ec
fix!: bump minor versions where it was required in #189 (#212)
* fix!: bump minor versions where it was required in #189

* update marine-js build
2022-09-12 16:55:33 +03:00
renovate[bot]
1aeb9b70b5
Update all non-major Rust dependencies (#204)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-09 18:55:35 +03:00
renovate[bot]
c674c92104
Update Rust crate serde_with to v2 (#203)
* Update Rust crate serde_with to v2

* bump versions

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Valery Antopol <valery.antopol@gmail.com>
2022-09-09 16:05:09 +03:00
renovate[bot]
1d8dd292c4
Update Rust crate cmd_lib to v1 (#194)
* Update Rust crate cmd_lib to v1

* remove cmd_lib dependency

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Valery Antopol <valery.antopol@gmail.com>
2022-09-08 22:56:27 +03:00
renovate[bot]
b3a8898893
Update all non-major Rust dependencies (#189)
* Update all non-major Rust dependencies

* fix tokio features

* add rt tokio feature

* bump bytes crate version to keep up with reqwest

* update tokio to 1.21.0

* bump crate versions

* use latest rust toolchain always

* update wasm-bindgen generated and patched code

* revert toolchaijn version change

* revert toolchaijn version change

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Valery Antopol <valery.antopol@gmail.com>
2022-09-02 18:48:25 +03:00
Valery Antopol
71b5953c22
feat(fluence-app-service): make base path field optional in ConfigContext interface (#202) 2022-08-31 14:14:43 +03:00
Valery Antopol
3449a34e35
Use sdk version from cargo manifest, instead of hardcoded value (#186) 2022-08-03 18:26:45 +03:00
Valery Antopol
17e8bf041e
Rework module searching on filesystem (#184) 2022-07-29 17:09:54 +03:00
Valery Antopol
d4a4d53bd5
bump crate versions that used marine-rs-sdk-main 0.6.15 (#185) 2022-07-27 21:58:47 +03:00
Valery Antopol
d9c8de35aa
Support marine-rs-sdk 0.7.0 (#180) 2022-07-27 18:01:30 +03:00
Mike Voronov
7a80d3e5a1
Fix value after table problem in TomlMarineNamedModuleConfig(#175) 2022-06-09 17:35:47 +03:00
Valery Antopol
aa954f35f2
REPL: improve "interface" command output readability (#169) 2022-06-02 20:09:14 +03:00
Mike Voronov
82217b332e
Rename FaaS to Marine, Runtime to Core (#172) 2022-06-02 19:51:27 +03:00
Mike Voronov
221e5e94b4
Use impl AsRef instead generics params in Marine interface (#166) 2022-05-26 23:05:58 +03:00
Valery Antopol
515fa655ad
update interface-types; add tests for lilo at offsets > 2GB (#158) 2022-04-26 12:27:54 +03:00
Valery Antopol
4e4f40cc8c
Update interface types (#149) 2022-04-06 22:55:33 +03:00
Valery Antopol
c406376b70 organizing code in generic wasm backend 2022-03-29 15:41:55 +03:00
Valery Antopol
5ab0f377c7
bump crate versions (#144)
* bump minor crate versions

* fix marine-web build

* sort deps
2022-03-25 20:45:19 +03:00
Valery Antopol
e37e475663
Fix panics when services have more than 2gb memory allocated (#143)
* add test for allocation at offset more than 2gb

* update wasmer-it version and use u32 instead of usize where needed

* remove cargo.toml patch
2022-03-25 18:40:50 +03:00
Valery Antopol
ccf004b41b get rid of wasmer-wasi dependenccy in generic wasm backend 2022-03-18 14:00:19 +04:00
Valery Antopol
96e6605c98 use generic wasm backend in faas and app-service +fmt 2022-03-18 02:43:04 +04:00
Valery Antopol
dbdb55c45a Replace errors with defined in backend traits 2022-03-16 04:05:15 +04:00
Valery Antopol
dc643c38d7 implement get_func for ExportContext 2022-03-16 03:10:18 +04:00
Valery Antopol
7fdb10ba5f getting rid of wasmer's Type, Value and function-related types 2022-03-14 13:21:24 +04:00
Valery Antopol
d9f9288e1e add get_func_no_args to Exports trait 2022-03-06 00:10:21 +03:00
Valery Antopol
2d93770688 code with errors 2022-03-03 19:58:11 +03:00
Valery Antopol
4bd99589b0 wrap vm::Ctx (with more std::memory::transmute calls) 2022-03-02 20:42:32 +03:00
Valery Antopol
daaa626c02 wrap DynFunc 2022-03-01 19:07:43 +03:00
Valery Antopol
6c94964f8e compilable state with Exports and Memory/MemoryView 2022-03-01 00:06:01 +03:00
Valery Antopol
b96013535b add ImportObject 2022-02-26 17:19:34 +03:00