diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-12-06 23:05:36 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-06 23:05:36 -0500 |
commit | c113df1bb8a0c7d0c560ad32c0291c918c7da7b4 (patch) | |
tree | 0d15de448be602c22aecb2ec65ac7667c437a209 /build_extra/rust/BUILD.gn | |
parent | 568ac0c9026b6f4012e2511a026bb5eb31a06020 (diff) |
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.
Diffstat (limited to 'build_extra/rust/BUILD.gn')
-rw-r--r-- | build_extra/rust/BUILD.gn | 42 |
1 files changed, 42 insertions, 0 deletions
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", + ] +} |