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

Rust library with batteries included #2633

Closed
s-panferov opened this issue Jul 11, 2019 · 4 comments · Fixed by #8640
Closed

Rust library with batteries included #2633

s-panferov opened this issue Jul 11, 2019 · 4 comments · Fixed by #8640

Comments

@s-panferov
Copy link

s-panferov commented Jul 11, 2019

In #1209 you introduced a deno crate which allows creating and working with a basic Isolate. This is definitely usable, but it would be very helpful to have the ability to "turn on" Deno's standard library from the cli package to be available in the deno crate along with maintaining the ability to get an "empty" Isolate as it is now. For some cases you need a standard library, for some you don't.


My use case: I'm trying to build a FaaS on top of Deno, and I would like to have some parts of the cli package available in deno crate:

  • The TypeScript compiler
  • Fetch API
  • Timers
  • Dynamic module import

But it would be useful to be able to turn on everything else selectively too.

@ry ry reopened this Jul 11, 2019
@ry
Copy link
Member

ry commented Jul 11, 2019

Yes I agree - it would be nice to have such a crate. We want to fix some performance issues before we release a full framework around d TS - but it’s a goal. Thanks for the feedback.

@s-panferov s-panferov changed the title Rust library with bataries included Rust library with batteries included Jul 11, 2019
@norman784
Copy link

I also have interest in using this as a dependency of my project, I don’t care if is unstable yet, because I’m not doing something that will be finished any time soon, but want to start working on it ASAP.

So my question is, it is possible to use as a dependency from the master branch? If so can you give some hints if there’s any gotcha or tricky part to make it work.

Thanks

@lucacasonato
Copy link
Member

Update:

@bartlomieju
Copy link
Member

The main runtime is now available as a Rust library crate: https://crates.io/crates/deno_runtime

@bartlomieju bartlomieju mentioned this issue Dec 14, 2020
22 tasks
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

Successfully merging a pull request may close this issue.

5 participants