tauri-plugin-deno 0.2.0

A tauri 2 plugin to use javascript code (deno) in the backend.
1
2
3
4
5
6
7
8
9
10
11
12
13
const { core } = Deno;

globalThis.op_hello = (...args) => { 
  op_hello(arts);
};

globalThis.addTauri = (fn) => {
  if (typeof globalThis._tauri_plugin_functions == "undefined") {
    globalThis._tauri_plugin_functions = [];
  }
  globalThis._tauri_plugin_functions.push(fn.name);
  globalThis[fn.name] = fn;
};