GGHavoc
GGHavoc3mo ago

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
thread 'main' panicked at /home/rencedm112/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/deno_core-0.350.0/gotham_state.rs:74:3:
required type deno_runtime::ops::bootstrap::SnapshotOptions is not present in GothamState container
thread 'main' panicked at /home/rencedm112/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/deno_core-0.350.0/gotham_state.rs:74:3:
required type deno_runtime::ops::bootstrap::SnapshotOptions is not present in GothamState container
- 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 project
1 Reply
Exidex
Exidex3mo ago
With gotham state thing, just create deno extension and add snapshot options manually to state, that'll fix the issue

Did you find this page helpful?