Can Deno be embedded in a larger Rust application? I know I can embed v8 directly <a href="https://github.com/denoland/rusty_v8" rel="nofollow">https://github.com/denoland/rusty_v8</a> but I wish I could use other parts of Deno.<p>In particular, I wish I could write a Tokio async program in Rust, and load plugins using deno, and have this work seamlessly<p>edit: actually, <a href="https://deno.land/manual@v1.25.0/embedding_deno" rel="nofollow">https://deno.land/manual@v1.25.0/embedding_deno</a> <a href="https://crates.io/crates/deno_core" rel="nofollow">https://crates.io/crates/deno_core</a> <a href="https://docs.rs/deno_core/latest/deno_core/" rel="nofollow">https://docs.rs/deno_core/latest/deno_core/</a><p>It doesn't expose tokio so I suppose that it manages its own runtime separate from the executor of the application using it (edit 2: it doesn't, it lets the user bring their own executor. cool!)
> New experimental HTTP server API<p>> Our benchmarks show a 4x improvement in hello-world request per second performance compared to Node.js and a 3x improvement compared to our existing web server.<p>What the heck was wrong with the previous implementation? :P<p><a href="https://github.com/denoland/deno/pull/15405" rel="nofollow">https://github.com/denoland/deno/pull/15405</a><p>I think this is the PR for it though.<p>Unless the performance benefits are from something else in <a href="https://github.com/denoland/deno/releases/tag/v1.25.0" rel="nofollow">https://github.com/denoland/deno/releases/tag/v1.25.0</a>
Npm support is really big addition. I thought of exploring deno for big project, but was worried if I can't find deno package for specific feature.<p>With bun claiming to be
fastest I want to see how deno compares to bun.
The main thing I want from Deno is per dependency sandboxing. They let you enable file system or internet access for the whole project, but that's basically useless in most of my usecases. If I could whitelist the couple of dependencies that might need http access or whatever, that'd be great.