louis030195
louis030195
DDeno
Created by louis030195 on 10/10/2024 in #help
how to use deno.json when using deno runtime in rust?
my code: https://github.com/mediar-ai/screenpipe/blob/main/screenpipe-core/src/pipes.rs i want to stop rewriting node api stuff and just import like in https://github.com/mediar-ai/screenpipe/pull/462/files eg
{
"imports": {
"zod": "npm:zod",
"ai": "npm:ai",
"ollama-ai-provider": "npm:ollama-ai-provider"
// also node api like fs, fetch, etc.
},
"tasks": {
"start": "deno run --allow-read --allow-write --allow-net --allow-env pipe.ts"
}
}
{
"imports": {
"zod": "npm:zod",
"ai": "npm:ai",
"ollama-ai-provider": "npm:ollama-ai-provider"
// also node api like fs, fetch, etc.
},
"tasks": {
"start": "deno run --allow-read --allow-write --allow-net --allow-env pipe.ts"
}
}
i'm assuming it's possible, any direction to do this appreciated
4 replies
DDeno
Created by louis030195 on 9/5/2024 in #help
already borrowed: BorrowMutError in deno runtime
/Users/louisbeaumont/.cargo/registry/src/index.crates.io-6f17d22bba15001f/deno_core-0.283.0/runtime/op_driver/futures_unordered_driver.rs:307:22: already borrowed: BorrowMutError this is my deno code: https://github.com/mediar-ai/screenpipe/blob/main/screenpipe-core/src/pipes.rs
10 replies
DDeno
Created by louis030195 on 8/1/2024 in #help
Using Deno to build a plugin system in an app (Rust, Tauri)
hi guys, im working on https://github.com/louis030195/screen-pipe and explore Deno to allow users to write plugins in JS/TS that would run in the Tauri app in the background does anyone has resources on how to do this?
1 replies