News for hackers. Stuff that matters.
Re:Deno 1.25 by nextaccountic on Thursday August 25, 2022 @03:02PM (#32598418)
Can Deno be embedded in a larger Rust application? I know I can embed v8 directly https://github.com/denoland/rusty_v8 but I wish I could use other parts of Deno.

In particular, I wish I could write a Tokio async program in Rust, and load plugins using deno, and have this work seamlessly

edit: actually, https://deno.land/[email protected]/embedding_deno https://crates.io/crates/deno_core https://docs.rs/deno_core/latest/deno_core/

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!)

Re:Deno 1.25 by rwiggum on Thursday August 25, 2022 @04:29PM (#32599569)
Yes, easily. We do this for the JS runtime at litprotocol.com
Re:Deno 1.25 by nextaccountic on Thursday August 25, 2022 @06:22PM (#32600703)
Cool! Can you link to it on Github or something? (is it oss?)