D
Deno

help

deno_core usage

KKyiro6/19/2023
Are there any repos using deno_core in their code + how would I enable the unstable features and URL imports?
ABTAndreu Botella (they/them)6/19/2023
deno_core doesn't come with anything "unstable" because it doesn't come with anything other than the javascript built-ins, plus the internal Deno.core API that only exists to allow extensions to work fetch (for example) is not unstable, but it's not in deno_core
KKyiro6/19/2023
ah I guess the question would be how to use full deno in my rust code
ABTAndreu Botella (they/them)6/19/2023
what specifically are you trying to do? for most things you can use deno_runtime, which comes with basically every API in Deno
KKyiro6/19/2023
use deno for scripting in a dll kinda weird
ABTAndreu Botella (they/them)6/19/2023
I guess you'd want to have an API to interact with your Rust code, plus everything else in Deno, right?
KKyiro6/19/2023
yeah seems like ops are the way to go?
ABTAndreu Botella (they/them)6/19/2023
yeah you probably want to build on top of deno_runtime then and build an extension with your own ops and code that you'd pass on the WorkerOptions deno_runtime doesn't come with import support though, so you'd have to set that up yourself
KKyiro6/19/2023
damn
ABTAndreu Botella (they/them)6/19/2023
GitHub
GitHub - andreubotella/deno-simple-module-loader: A simple implemen...
A simple implementation of deno_core's ModuleLoader trait which supports loading modules from the network. - GitHub - andreubotella/deno-simple-module-loader: A simple implementation of den...
ABTAndreu Botella (they/them)6/19/2023
GitHub
deno/core/examples/ts_module_loader.rs at main ยท denoland/deno
A modern runtime for JavaScript and TypeScript. Contribute to denoland/deno development by creating an account on GitHub.
KKyiro6/19/2023
thank you ๐Ÿ™

Looking for more? Join the community!

Recommended Posts
Error reading `allocUnsafe` using npm:icsHello there, I try to use npm:ics in my project and in some runs it works, in others it doesn't (whiUsing discord.js in Deno?Apparently Deno supports discord.js now. Awesome. But now I can't make it work. According to debug Type alias with inherited type parameter constraintsIs there any way to do this? I want SVLTN to just be a short-name alias for SomeVeryLongTypeName, anFresh: global stateIs it possible to have a global state that can be accessed from anywhere? Currently I'm passing the Run Deno on Linux without /proc mountedI have a few automatic scripts using deno to run stuff, and wanted to migrate them to another MachinReasons to choose Node.jsI've been tasked to write a list of pros/cons of Deno in comparison to Node.js. I am quite honestly Reejs not working on Deno v1.34```js deno run -A npm:reejs [INFO] Saving important data... [TIP] If the error indeno.land published the same GitHub tag twicehttps://deno.land/x/smee_client_unofficial@v1.2.3 Could someone please just delete the older one?Uncaught (in promise) eof for websocket/root/.pm2/logs/twitter-follow-checker-error.log last 15 lines: 0|twitter_ | Deno hangs on errorWhy does Deno hang when XML.parse throws an error? ``` let text = '<xml><xbrli:xbrl><hi>Hello</hi><[SOLVED] deno.lock keeps getting populated with dependencies I don't needI have tried to use a syntax highlighter before and have since removed it from my project, but everyWhat a method prefixed with `#` means?This is perhaps the stupidest question ever. But I often see method with names prefixed with a `#`Logger names and prefixesIs there any obvious way on how to configure std/log so that loggers named `my-prefix/foo/bar` and `Deno and `npm:mongodb` problem with `node:`?``` โฏ deno check --reload main.ts error: Relative import path "net" not prefixed with / or ./ or ../DiscordJS "Error: Not implemented: ClientRequest.options.createConnection"```ts import { GatewayDispatchEvents, GatewayIntentBits, InteractionType, MessageFlags, Client } froUsing Superagent in Deno?Has anyone managed to make Superagent work nicely in Deno? ``` _ { type: "error", message: "BroOak โ€“ ctx.assert with custom response headersAm I doing this wrong? No extra custom headers are being set in the response as far as I can see in npm:undici doesn't workhttps://github.com/denoland/deno/issues/16710 Marked as resolved by this issue but does not work in Abusing prototype CryptoKey in `node:crypto`Is there any way that I can set the prototype of an object to specifically `CryptoKey` as defined byUncaught (in promise) TypeError: cannot read headers: request closedWhat is this? How to fix it?