11 Commits

Author SHA1 Message Date
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
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
Valery Antopol
d3a773df4f
feat!: decouple wasmer from Marine, replace it with generic backend interface (#219) 2023-03-15 00:43:51 +03:00
Valery Antopol
fd47800cca
chore(build): fix clippy warnings (#213) 2022-09-19 19:13:38 +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
Valery Antopol
d9c8de35aa
Support marine-rs-sdk 0.7.0 (#180) 2022-07-27 18:01:30 +03:00
Mike Voronov
cc1766b7f1
fix tests after renaming (#174) 2022-06-09 17:00:19 +03:00
Pavel
68438eadc0
Marine JS: add possibility to pass environment variables to WASM services (#153)
* Setting logging level

* Fix variable name

* try different logging levels

* Add tests for logging in wasm modules

* Finish unit tests for logging in wasm

* specifying marine service id in message format

* better message format

Co-authored-by: Valery Antopol <valery.antopol@gmail.com>
2022-04-23 16:34:45 +03:00
Pavel
87542dde45
Add more tests for void function result for marine-js (#152) 2022-04-22 20:01:08 +03:00
Pavel
0476950681
Marine-js milestone 2: implementation of single-module wasm services (#148) 2022-04-20 20:33:55 +03:00