Is there a Deno equivalent of the libnode
endeavor? (C interface for cdylib builds)
#15810
josh-hemphill
started this conversation in
General
Replies: 1 comment
-
You can write your own C interface for #[no_mangle]
pub extern "C" fn create_runtime() {
deno_core::JsRuntime::new(...);
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For what's going on in node land that I'm referring to see the PR and MVP
Knowing nothing about cdylib generation, I thought I could just compile
deno_core
ordeno_runtime
ascdylib
and be able to use it externally, but found out it needsC
interfaces for that to work.Personally I'd much prefer to use Deno for embedding in other applications, but I can't find any info on anyone else creating linkable binaries for Deno.
An off-the-cuff idea I have is if this exists; I wonder if it would be possible to use with
deno compile
to also be able to generate linkable binaries from javascript code. 👀Beta Was this translation helpful? Give feedback.
All reactions