Open Simon-Laux opened 1 year ago
In the end we want to now have a package that uses the stdio-server-binary instead of dealing with NAPI linking stuff. https://github.com/deltachat/deltachat-core-rust/tree/main/deltachat-rpc-server
So starting a sub process and talking with it over stdio instead of node bindings (be it this repo or deltachat-node, both are node bindings)
I started making the new package at https://github.com/deltachat/deltachat-core-rust/pull/5332
We can later move it there, but for now:
package.json
in the root of the repo so it is the only one installable via git (throughnpm install https://github.com/deltachat/deltachat-core-rust.git
), though I'm unsure if napi.rs packages can even be installed via git?Also I'm unsure whether we should really migrate to use this in desktop instead of
deltachat-node
:Pros
deltachat-node
to have it is also possible.)Cons
deltachat-node
libdeltachat-jsonrpc
that exposes an interface over stdin/stdout pipes, websocket or similar could make that possibleAs we plan to switch to tauri anyway, I don't see the real benefit of switching it for desktop, we should rather just say we phase out
deltachat-node
as being "deprecated/obsolete" for anything besides dc desktop and that they should use thenapi-jsonrpc
bindings instead.