0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-01 09:24:20 -04:00
Commit graph

75 commits

Author SHA1 Message Date
Ryan Dahl
d8b68648d1 Update repo links to denoland. 2018-08-02 23:12:49 -04:00
Ryan Dahl
c7c6203e61
Source map support (#429)
This change increases size:
out/debug/obj/libdeno/from_snapshot.o  19M -> 34M
out/release/deno                       32M -> 47M
2018-08-02 13:13:32 -04:00
Ryan Dahl
6b6fac209c Optimize compile time by using asm.
Switches to using asm incbin to embed the V8 snapshot instead of
outputing C code and then compiling it.

Compile time for from_snapshot.o goes from 44s to 1s.
2018-08-01 12:14:10 -04:00
Ryan Dahl
ae82db54f6 build: use compiled_action for create_snapshot.
Switch the order of the snapshot_creator args, in order to allow for
optional source map arg.
2018-08-01 12:14:10 -04:00
Bert Belder
604a8a640c Add winapi crate, make 'rand' and 'tempfile' work 2018-07-29 00:22:39 -04:00
Bert Belder
37a4606d29 Add "features" argument to rust components 2018-07-29 00:22:39 -04:00
Ryan Dahl
1f093c12f8 Add sha1 and tempfile crates. 2018-07-29 00:22:39 -04:00
Ryan Dahl
c06f2789f8 spelling 2018-07-29 00:22:39 -04:00
Ryan Dahl
0213053856 Remove handlers crate target.
- Add build scripts for Rust flatbuffers.
- Rewrites some reply.cc methods in Rust.
- Changes some struct elements to table in msg.fbs (rust flatbuffers
  lacks support currently)
- Renames handlers_test to test_rs.
- This reorg is needed to make progress on the code cache handler.
2018-07-24 12:29:54 -04:00
Ryan Dahl
1de16af1f3 Change copyrights to be 'Deno authors'. 2018-07-24 10:38:11 -04:00
Yoshiya Hinosawa
3563638693 Fix some warnings (#379) 2018-07-21 11:00:09 -04:00
Bert Belder
89c7554d4a
Suppress misleading rustc warning when running gn gen
rustc prints the warning:
  `-C save-temps` might not produce all requested temporary
  products when incremental compilation is enabled.

However, incremental compilation isn't even enabled.

A look at the Rust source code confirms that this warning is indeed
printed unconditionally when the `-C save-temps` flag is specified:
5f2b325f64/src/librustc/session/config.rs (L1015-L1018)
2018-07-20 19:17:31 +02:00
Bert Belder
422150c797
Link rust_test targets with external linker, fix handlers_test linkage 2018-07-19 21:55:39 +02:00
robbym
d93bd4b127 Use Cargo to install rust deps into //third_party/rust_crates (#383) 2018-07-18 20:00:53 -04:00
Ryan Dahl
2f94c5b48b Add rust crate log to third_party. 2018-07-18 15:43:50 -04:00
Ryan Dahl
ad4f335847 Add color to rustc output (except windows) 2018-07-12 17:38:51 -04:00
Bert Belder
4f626098ec
windows: add .exe extension to executable produced by rust_test template 2018-07-10 21:54:56 +02:00
Ryan Dahl
d160de7f44
Add rust url crate. (#355) 2018-07-10 14:56:12 -04:00
Ryan Dahl
e269d972d2 Move libc build def to //build_extra/rust
This is preperation for adding many more third_party crates.
2018-07-09 16:50:33 -04:00
Ryan Dahl
c4d61accf4 Fix rust depfile problem.
Fixes #316.
2018-07-09 16:50:33 -04:00
Ryan Dahl
f917c5e722 Clean up tools/
- Factor out tools/util.py
- Move js/*.py to tools.
- Rewrite tools/format.sh in python.
- Run lint first in travis.
2018-07-08 13:40:18 -04:00
Ryan Dahl
740b47db6c Move flatbuffers gn files to //build_extra/flatbuffers
Fixes #342.
2018-07-07 17:40:59 -04:00
Ryan Dahl
6bff970d69 Add rust_test to gn build, with working example. 2018-07-07 17:24:46 -04:00
Ryan Dahl
179eeb2b50 s/rust_deps/extern/g 2018-07-06 10:46:30 -04:00
Ryan Dahl
d30664958e Further gn/rust cleanups
Move rust.gni and deno.gni into build_extra/

Removes rust_library which was only an action. This instead defines
rust_component, which is an action plus a gn "component" target
to expose the resulting object file. This simplifies link code in
rust.gni.

Support rust modules that can be linked into C++.
2018-07-06 10:46:30 -04:00