Answer the question
In order to leave comments, you need to log in
Are there any frameworks that allow you to write a backend in rust + javascript?
Are there any frameworks that allow you to write a backend in rust + javascript?
Answer the question
In order to leave comments, you need to log in
Chot you mixed warm and soft.
according to the classics: on js, the front is sawn on anything, which, via API, communicates with the back, which is written on anything.
in a special way: there are frameworks / approaches that try to cross this in one: blazor for no, vaadin for java, livewire for php and all that.
it's up to you to decide. in its purest form, the back is not related to the front at all, except through the API.
Depending on what you understand by rust + javascript
If this is a project on rust with inserts on js (for example, for ssr), then there are several options:
1. An application on rust and an application on node.js work side by side, communicate via tcp/udp/unixsock/ etc.
2. Integrate rust application as a native addon to node.js, communication via ffi, there is neon for this .
3. Introduce a js engine into the application on rust, for example, there is a binding to v8 from deno or a much more lightweight quick-js , true bindingwhile it is greatly curtailed and not the fact that it will get better, it is clearly a person who is far from js. In my spare time, I'm sawing my safe wrapper for this engine, my goal is just to launch ssr js frameworks in rust applications, but I think something working will not be until October.
There are no such frameworks, and it is not clear why.
In principle, on the backend, you can use ffi / wrappers over v8 / wasm / all sorts of RPCs over anything, but these will all be home-made solutions, not frameworks.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question