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
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_coreah
I guess the question would be how to use full deno in my rust code
what specifically are you trying to do?
for most things you can use
deno_runtime
, which comes with basically every API in Denouse deno for scripting in a dll
kinda weird
I guess you'd want to have an API to interact with your Rust code, plus everything else in Deno, right?
yeah
seems like ops are the way to go?
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 yourselfdamn
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...
and if you want typescript compilation, also https://github.com/denoland/deno/blob/main/core/examples/ts_module_loader.rs
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.
thank you 🙏