Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embedding deno in other projects #1666

Closed
hephex opened this issue Feb 4, 2019 · 5 comments
Closed

Embedding deno in other projects #1666

hephex opened this issue Feb 4, 2019 · 5 comments

Comments

@hephex
Copy link

hephex commented Feb 4, 2019

I'm working on a project to create an edge application runtime (similar to fly or Cloudflare's Workers) in Rust, and I couldn't find any good v8 wrapper for Rust.

I appreciate Deno is not meant to be a library and designed to be a standalone TS runtime, but would you be interested in exposing some of its useful primitives (i.e. deno::isolate::Isolate) in a Rust library? Obv I'd be happy to help with this if you think it's viable. I've got a naïve implementation of a web app embedding deno, just renaming main.rs to lib.rs.

@kyranet
Copy link
Contributor

kyranet commented Feb 4, 2019

There is a similar suggestion at #1357 👍

@ry
Copy link
Member

ry commented Feb 5, 2019

Yes, we would like to release a crate - we're almost there but have hit a few snags on the "cargo package" step of the process #1387

You should be able to include deno as a git submodule and use cargo path dependencies: https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#specifying-path-dependencies
but we'd like to make this a better experience. Any help with "cargo package" would be greatly appreciated.

@hephex
Copy link
Author

hephex commented Feb 6, 2019

Yes, at the moment I'm using a submodule pointing to a fork where I added the file lib.rs that exposes the things I need.

Re #1387, I'd like to help with that. Is there anything that you already tried? Any idea on possible solutions?

@ry
Copy link
Member

ry commented Feb 6, 2019

@hephex it’s been a few weeks since I looked at it but I’ve got a WIP branch listed in the issue. I believe it was stuck at uploading to crates.io due to size.

@bartlomieju
Copy link
Member

FYI @hephex Deno is available as a crate since late March

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants