From c113df1bb8a0c7d0c560ad32c0291c918c7da7b4 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Thu, 6 Dec 2018 23:05:36 -0500 Subject: Process source maps in Rust instead of JS (#1280) - Improves speed and binary size significantly. - Makes deno_last_exception() output a JSON structure. - Isolate::execute and Isolate::event_loop now return structured, mapped JSError objects on errors. - Removes libdeno functions: libdeno.setGlobalErrorHandler() libdeno.setPromiseRejectHandler() libdeno.setPromiseErrorExaminer() In collaboration with Ryan Dahl. --- build_extra/rust/BUILD.gn | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) (limited to 'build_extra/rust/BUILD.gn') diff --git a/build_extra/rust/BUILD.gn b/build_extra/rust/BUILD.gn index de6a01c20..f872dccb1 100644 --- a/build_extra/rust/BUILD.gn +++ b/build_extra/rust/BUILD.gn @@ -1101,3 +1101,45 @@ rust_crate("tokio_process") { ] } } + +rust_crate("vlq") { + source_root = "$registry_github/vlq-0.5.1/src/lib.rs" +} + +rust_crate("source_map_mappings") { + source_root = "$registry_github/source-map-mappings-0.5.0/src/lib.rs" + extern = [ + ":rand", + ":vlq", + ] +} + +rust_crate("ryu") { + source_root = "$registry_github/ryu-0.2.7/src/lib.rs" + features = [ "small" ] +} + +rust_crate("serde") { + source_root = "$registry_github/serde-1.0.80/src/lib.rs" + features = [ + "default", + "std", + ] +} + +rust_crate("serde_json") { + source_root = "$registry_github/serde_json-1.0.33/src/lib.rs" + features = [ + "arbitrary_precision", + "default", + "preserve_order", + "indexmap", + "raw_value", + ] + extern = [ + ":indexmap", + ":itoa", + ":ryu", + ":serde", + ] +} -- cgit v1.2.3