summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2019-01-08 14:44:06 -0500
committerGitHub <noreply@github.com>2019-01-08 14:44:06 -0500
commit6f79ad721a9f8c9d66d79f21ea479286f3ca5374 (patch)
tree3f8bad38a5bc109586d86846cb299717b425cdba /src/main.rs
parent9ff6bca86388dab2cfa26e1712822f105985425e (diff)
Minimal Worker support (#1476)
This adds the ability to spawn additional Isolates from Rust and send and receive messages from them. This is preliminary work to support running the typescript compiler in a separate isolate and thus support native ES modules. Ref #975.
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 364a9cf7e..75cc61b58 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -47,6 +47,7 @@ pub mod snapshot;
mod tokio_util;
mod tokio_write;
pub mod version;
+mod workers;
#[cfg(unix)]
mod eager_unix;
@@ -96,7 +97,7 @@ fn main() {
log::LevelFilter::Warn
});
- let state = Arc::new(isolate::IsolateState::new(flags, rest_argv));
+ let state = Arc::new(isolate::IsolateState::new(flags, rest_argv, None));
let snapshot = snapshot::deno_snapshot();
let isolate = isolate::Isolate::new(snapshot, state, ops::dispatch);
tokio_util::init(|| {