Kyiro
Kyiro13mo ago

deno_core usage

Are there any repos using deno_core in their code + how would I enable the unstable features and URL imports?
11 Replies
Andreu Botella (they/them)
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
Kyiro
Kyiro13mo ago
ah I guess the question would be how to use full deno in my rust code
Andreu Botella (they/them)
what specifically are you trying to do? for most things you can use deno_runtime, which comes with basically every API in Deno
Kyiro
Kyiro13mo ago
use deno for scripting in a dll kinda weird
Andreu Botella (they/them)
I guess you'd want to have an API to interact with your Rust code, plus everything else in Deno, right?
Kyiro
Kyiro13mo ago
yeah seems like ops are the way to go?
Andreu Botella (they/them)
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
Kyiro
Kyiro13mo ago
damn
Andreu Botella (they/them)
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...
Andreu Botella (they/them)
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.
Kyiro
Kyiro13mo ago
thank you 🙏