Why Nostr? What is Njump?
2024-09-03 19:07:33

التنينوكس on Nostr: Un #rust ans #actix web, how can I have a strict as app state that is non-send. ...

Un #rust ans #actix web, how can I have a strict as app state that is non-send.

Precisely I have a deno_core embedded with app state that needs to store and invoke JS closures. Those closrea are passed to rust as v8::Functions. I do not care if they are duplicated between threads or isolated in a global state. I just want to declare them in invoke them from my actix routes.

For context, I am experimenting a JS simple embedded app with an action router.
Author Public Key
npub1xy462vxe75tzdqktuqd49kk6uw5yxdevjg8dypg6wgmvycjpfe8qrrmldl