diff options
author | Bert Belder <bertbelder@gmail.com> | 2019-03-31 17:22:02 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-31 17:22:02 -0400 |
commit | 97265895baaf7e90180f10f7ef741e9bbf1dcfd0 (patch) | |
tree | 06025aa18417b8b1ac20144a68b61027f5d5be6f /core/libdeno.rs | |
parent | 3ba4c3c2b08f9827af67b208f276e95082b625bd (diff) |
Publish rust crate on crates.io (#2024)
Diffstat (limited to 'core/libdeno.rs')
-rw-r--r-- | core/libdeno.rs | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/core/libdeno.rs b/core/libdeno.rs index 72003a372..1a80330de 100644 --- a/core/libdeno.rs +++ b/core/libdeno.rs @@ -133,6 +133,34 @@ pub struct deno_config { pub recv_cb: deno_recv_cb, } +#[cfg(not(windows))] +#[link(name = "deno")] +extern "C" {} + +#[cfg(any(target_os = "macos", target_os = "freebsd"))] +#[link(name = "c++")] +extern "C" {} + +#[cfg(windows)] +#[link(name = "libdeno")] +extern "C" {} + +#[cfg(windows)] +#[link(name = "shlwapi")] +extern "C" {} + +#[cfg(windows)] +#[link(name = "winmm")] +extern "C" {} + +#[cfg(windows)] +#[link(name = "ws2_32")] +extern "C" {} + +#[cfg(windows)] +#[link(name = "dbghelp")] +extern "C" {} + extern "C" { pub fn deno_init(); pub fn deno_v8_version() -> *const c_char; |