🎉 initial commit

This commit is contained in:
2025-09-20 20:44:24 +08:00
commit 82538addcc
19 changed files with 483 additions and 0 deletions

10
extra/rust_fmt_node.js Normal file
View File

@@ -0,0 +1,10 @@
import fs from "node:fs/promises";
import initAsync from "./rust_fmt.js";
const wasm = new URL("./rust_fmt_bg.wasm", import.meta.url);
export default function __wbg_init(init = { module_or_path: fs.readFile(wasm) }) {
return initAsync(init);
}
export * from "./rust_fmt.js";

8
extra/rust_fmt_vite.js Normal file
View File

@@ -0,0 +1,8 @@
import initAsync from "./rust_fmt.js";
import wasm from "./rust_fmt_bg.wasm?url";
export default function __wbg_init(input = { module_or_path: wasm }) {
return initAsync(input);
}
export * from "./rust_fmt.js";