Recommended way to embed Deno with all its features
I'm currently building a build to which allows scripting via TypeScript/JavaScript. So far this is what I've tried and why I haven't been able to go through with it:
- Using
deno_core
crate: too bare bones, you need a lot of configuration to get some basic functionality such standard node extensions, importing via node_modules etc
- Using deno_runtime
crate: better than deno_core
but still missing import functionality via node_modules, also encountering errors which I have no idea where/how to fix
- Forking deno: maitenance is gonna be hard to keep upstream changes in sync
- Having deno as a git submodule and adding it's crates as my workspace members: this is a nightmare to manage since deno's rust workspace configuration is vastly different from my rust workspace
Just asking if anyone has any recommendations or can point me to a project which had embedded deno with all it's features into their rust project1 Reply
With gotham state thing, just create deno extension and add snapshot options manually to state, that'll fix the issue