65 Commits

Author SHA1 Message Date
Valery Antopol
13cf85ba36
feat!: move to async execution (#396)
* wip

* WIP

* WIP

* compiles, async mrepl works

* add Send

* Updating marine-js

* FuncGetter compiles

* wow it compiles

* marine-js compiles but does not work

* marine-js tests almost pass

* marine-runtime and marine-core tests pass

* fmt

* epoch interruption works in mrepl

* WIP: switching from async_trait to box_future

* move from async_trait to BoxFuture

* self-review fixes

* self-review fixes

* merge memory limits

* pr fixes

* pr fixes

* pr fixes

* pr fixes

* update cargo lock

* use published interface-types

* remove patch deps

* fix factory and make AppService generic

* fix marine-js

* try locking deps

* add debug prints to workflow

* fix workflow

* update workflow

* make marine-js bindings patcher update all __wbg_adapter_* functions

* remove debug prints from workflows

* self-review fixes

* self-review fixes

* self-review fixes

* final fixes

* fix mrepl

* fix pr comments, fmt and clippy

* fix Cargo.toml and Cargo.lock after merge

* test fixes after merge

* update rust toolchain to match one in no

* fixes for nox integration

* reexport MError

* update js bindings

* fix warning

* fmt
2024-04-11 00:34:34 +04:00
Valery Antopol
b20a27f8b6
feat: support marine-rs-sdk 0.14 (#419)
* uodate sdk

* add cp v3 test
2024-02-21 16:59:49 +04:00
Valery Antopol
220c028045
feat!: support particle parameters in CallParameters (__marine_host_api_v2) (#417)
* support call_parameters v2

* fmt

* fix warnings; require exact version for sdk v0 and v1

* support json_path

* update lockfile

* bump sdk versions and fix mrepl

* fix call_parameters example

* fix marine-js

* fmt
2024-02-20 16:06:44 +04:00
Valery Antopol
662a49204f
feat!: add memory limiting (#391)
* memory limits iteration 1

* correct counting

* update to wasmtime 13.0.0

* wip stats recording

* adding memory limit tests

* fix build

* fix build

* fix build

* fix tests

* add configs

* update Cargo.lock

* self-review fixes

* self-review fixes, cleanup

* fix tests build

* fix tests, remove wee_alloc form lockfile

* fix build

* format tests

* pr fixes

* make tests more robust

* pr fixes

* Add OOM check into marine-runtime

* Use new error variant in tests

* add handy error message

* fix error msg

* fix tests

* check for OOM more precisely

* improve readability

* add "inifinity" memory limit, make memory limit mandatory, stop persisting allocation rejects

* add forgotten allocation stats clear

* pr fixes

* pr fixes

* use bytesize in tests
2023-12-13 19:51:58 +03:00
Valery Antopol
036c3348e3
feat(deps)!: update marine-rs-sdk-to 0.10.0 (#364)
* feat!: update marine-rs-sdk-to 0.9.0

* bump versions manually

* update lockfile

* update rust toolchain, so wasm-pack can be installed

* use marine-rs-sdk from git

* update Cargo.lock

* update sqlite-wasm-connector

* use marine-rs-sdk 0.10.0

* update marine version in examples

* update Cargo.lock

* fmt
2023-09-13 19:14:24 +03:00
Valery Antopol
62802fa3d9
chore: remove marine-rs-sdk-test from examples, move it to test-sdk repo (#363)
chore: remove marine-rs-sdk-test usages
2023-08-16 20:57:11 +03:00
Anatolios Laskaris
bcb10af7f9
chore: speedup CI (#356)
* Trigger CI

* Speedup CI
2023-08-10 12:53:26 +03:00
Valery Antopol
a61ddfc404
feat(marine-js)!: replace old marine-js with common marine-runtime + backend traits impl for JS (#332)
* add js wasm backend crate + blank trait impls

* make wasmtime a default feature for runtime and core

* WIP: mock WASI, greeting almost works

* WIP: added @wasmer/wasi, moved some stuff to JsStore, implementing Caller

* finalize Caller

* remove old code

* changing js API + fmt

* update wasm-bindgen generated and patched code

* update call_module to throw error, fix non-logging tests

* add multi-module test + update js api

* fix last element getting

* refactor interface + pass envs

* get rid of make_*_result

* small refactor

* support passing log function

* get rid of some todos

* use String instead of Vec<u8> for wasi envs

* use Strings for wasi envs in marine js

* little fix

* self-review fixes, import ordering

* self-review fixes, import ordering

* make clippy happy + fmt

* self-review fixes

* self-review fixes

* self-review fixes

* revert example artifact change

* pr fixes

* add __wbg_adapter_N updating code

* add all-types test

* fix build

* update marine_js.js

* Fix I64 handling

* pr fixes

* fix import order

* add copyrights

* Add comments, slightly beautify code

* fmt

* make clippy happy

* update js interface

* split function interface, improve naming

* update Cargo.lock

* update to new wasm-backend traits

* wip

* js glue code update

* improve comment

* use typed index collection

* Add more comments

* Add more comments

* Fix warnings

* pr fixes

* pr fixes
2023-07-25 19:49:55 +03:00
Anatolios Laskaris
71835e6762
fix(release-please): Get rid of workspace.dependencies (#316)
Get rid of dependencies
2023-04-04 13:28:28 +03:00
Valery Antopol
defd165b86
fix(cli): use proper wit syntax for set it command (#305)
update interface-types crates
2023-03-22 16:17:00 +03:00
Valery Antopol
d3a773df4f
feat!: decouple wasmer from Marine, replace it with generic backend interface (#219) 2023-03-15 00:43:51 +03:00
Pavel
7aacb8eb9d
Update marine-js public interface. Replace any with generic JSON types. Doing se\desalinization work insine marine-js (#207) 2022-09-09 17:28:30 +03:00
Valery Antopol
17e8bf041e
Rework module searching on filesystem (#184) 2022-07-29 17:09:54 +03:00
Mike Voronov
82217b332e
Rename FaaS to Marine, Runtime to Core (#172) 2022-06-02 19:51:27 +03:00
Mike Voronov
e4ebf1d0fb
Update readme (#160)
Co-authored-by: boneyard93501 <4523011+boneyard93501@users.noreply.github.com>
2022-05-15 12:09:11 +03:00
Valery Antopol
515fa655ad
update interface-types; add tests for lilo at offsets > 2GB (#158) 2022-04-26 12:27:54 +03:00
Pavel
0476950681
Marine-js milestone 2: implementation of single-module wasm services (#148) 2022-04-20 20:33:55 +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
614a4cb078
add module and function names to errors about invalid arguments (#142) 2022-02-24 13:07:52 +03:00
Valery Antopol
bbd006ed3c
Add js version of runtime that supports interface types and runs in browser (#137) 2022-02-18 18:26:06 +03:00
Valery Antopol
d1ed552d80
Add marine test examples for build.rs and marine_test on mod (#130) 2021-10-18 20:15:51 +03:00
Valery Antopol
ccdbbd0044
Add multi-service marine_test example (#128) 2021-10-05 18:14:35 +03:00
Mike Voronov
c62a278897
Print Aqua-compatible types (#86) 2021-05-20 20:20:57 +03:00
Mike Voronov
0b1d038565
Rename to marine: part 2 (#84) 2021-05-11 15:44:11 +03:00
Mike Voronov
269f691569
Rename to marine: step 1 (#83) 2021-05-10 12:51:22 +03:00
vms
820e292f15
Additional tests for BWU (#74) 2021-04-13 12:36:14 +03:00
vms
5effdcba72
Support versioning in CLI (#67) 2021-03-12 20:04:47 +03:00
vms
0b8f757dcd
update examples (#47) 2020-12-09 15:57:10 +03:00
vms
674cffd032 rename site-storage to url-downloader 2020-11-30 19:21:51 +03:00
vms
b76fadc453 update site-storage example 2020-11-30 12:14:21 +03:00
vms
ddd3448af7
Introduce module interface cache (#40) 2020-11-05 20:58:13 +03:00
vms
5aea5a53ad
Fluence FaaS refactoring (#36) 2020-10-21 22:21:16 +03:00
vms
444e30749e
Host functions refactoring (#30) 2020-10-01 12:19:38 +03:00
vms
58f14427f1
Array support (#28) 2020-09-23 01:14:54 +03:00
vms
8296486eaa add sqlite example 2020-09-17 21:46:53 +03:00
vms
dd52743024
Record refactoring (#19) 2020-09-16 01:14:15 +03:00
Dima
5259036913
Call parameters module (#26) 2020-09-14 14:22:56 +03:00
Dima
acab656dd9
site-storage wasm project (#25) 2020-09-11 15:58:38 +03:00
vms
7e1e94ecc3 update examples 2020-08-08 13:38:41 +03:00
vms
7254fe7e8c
Introduce REPL for testing (#14) 2020-08-07 23:24:28 +03:00
vms
c06dddd5ae
Introduce service (#13) 2020-08-07 11:54:37 +03:00
vms
ab2b075748 rename crates and adjust dependecies 2020-07-28 23:33:46 +03:00
vms
f8a5bbdfd2 introduce test-record crate in the record example 2020-07-28 17:08:26 +03:00
vms
0a32104cbc add example with records 2020-07-28 01:19:15 +03:00
vms
e9ef12b6b4
Move to the new sdk (#8) 2020-07-11 23:04:55 +03:00
vms
9a02ffc54f wit refactoring 2020-07-09 15:55:58 +03:00
vms
d524eebc55 bump rust-sdk version 2020-07-09 06:21:04 +03:00
vms
124f07a591 introduce fce_cli 2020-07-07 23:11:47 +03:00
vms
b1e7eae29b rename IPFSNode to FluenceFaaS; dir rearranges 2020-06-15 17:22:18 +03:00
vms
bb2bbcf35e split fce_wit_interfaces 2020-06-06 00:13:05 +03:00