1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-28 01:59:06 -05:00
Commit graph

81 commits

Author SHA1 Message Date
Bert Belder
838d14a589
build: build rustls with the same features between gn/ninja and cargo 2018-12-19 12:19:44 +01:00
Goffert van Gool
40d6daf824 Read version from Cargo.toml (#1267) 2018-12-13 16:16:58 -05:00
Ryan Dahl
c113df1bb8
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.
2018-12-06 23:05:36 -05:00
Ryan Dahl
3846384888 Upgrade Rust crates 2018-11-30 15:07:13 -08:00
Ryan Dahl
c5d8cf8eb6 Use pylint. 2018-11-30 11:33:45 -08:00
Ryan Dahl
1ac2934604 Make //build a git submodule
So we can float patches before sending them upstream.
https://github.com/denoland/chromium_build

Remove build_extra/toolchain
2018-11-29 23:12:38 -08:00
Ryan Dahl
84a1b4d793 Move libdeno build config to libdeno/BUILD.gn 2018-11-29 17:46:09 -08:00
Ryan Dahl
ea4580f337 Fix mac debug build. 2018-11-29 17:46:09 -08:00
Ryan Dahl
65cce40a89 gitignore vim .swp files 2018-11-27 15:47:31 -08:00
Andy Hayden
27ecfc1617 Add repl (#998)
- Running repl from js side.
- Add tests for repl behavior.
- Handle ctrl-C and ctrl-D.
2018-11-05 09:55:59 -08:00
Bert Belder
b9914c3113
third_party: add tokio-process Rust crate and its dependencies 2018-11-03 07:42:24 +01:00
Bert Belder
a244c16270
third_party: upgrade Rust crates 2018-11-03 07:22:04 +01:00
Bert Belder
a4b5146157
build: infer label name for versioned Rust crates 2018-11-03 07:18:10 +01:00
Bert Belder
ec17239f46
cargo: build in Cargo's out dir if DENO_BUILD_PATH is not set
Plus some minor improvements and clean-ups:

* Resolve DENO_BUILD_PATH to an absolute path if necessary.
* Rename DENO_BUILD_PATH to GN_OUT_DIR in places where it is supposed to
  be set by the build system (and not a user configuration variable).
* Output Cargo `rerun-if-*-changed` instructions first, so even if the
  build itself fails, configuration changes will still trigger a re-run
  of build.rs.
* Remove TODOs that are impossible.
* Re-run build.rs when the flatbuffer definition file changes.
2018-11-01 14:18:18 +01:00
Ryan Dahl
198e396ead
Support cargo check (#1128)
- Based on code from @qti3e and @piscisaureus in #724 and #1125
  respectively.
- TODO The DENO_BUILD_PATH env var must be supplied and must be an
  absolute path, this restriction should be removed in future work.
2018-10-31 11:11:10 -07:00
Ryan Dahl
7c82667f75
Upgrade Flatbuffers. (#1127)
Use msg_generated.rs as mod instead of crate.
2018-10-31 00:32:42 -07:00
Ryan Dahl
6adc87e3eb
Ergonomics: Prompt TTY for permission escalation (#1081) 2018-10-27 06:11:39 -07:00
Ryan Dahl
59acd8d1ac
Turn on treat_warnings_as_errors (#1086)
Fixes #374
2018-10-25 17:05:59 -07:00
Bert Belder
00e4f7cf83
build: fix compatibility with rustc 1.30.0
Additionally:
* Rebuild rust crates when the rustc version changes.
* Fetch all rust ldflags in one exec_script() call instead of two.
2018-10-25 22:48:08 +02:00
Kevin (Kun) "Kassimo" Qian
988ec88dd0 Switch to getopts for flag parsing (#1080) 2018-10-23 21:02:43 -07:00
Bert Belder
edb7b609f2
build: clean up the gn template for rust targets a bit 2018-10-20 07:20:07 +02:00
Ryan Dahl
00884d7164 Add rustfmt to third_party. 2018-10-20 01:19:59 -04:00
Ryan Dahl
6e6deed12d Upgrade crates 2018-10-19 21:42:23 -04:00
Ryan Dahl
1cfa41920e Disable warning on linux. 2018-10-19 21:35:10 -04:00
Ryan Dahl
930df1848a Upgrade hyper-rustls
This removes tokio-core, which was deprecated.
2018-10-10 12:19:08 -04:00
Bert Belder
47e8242b29
build: add support for rustc_wrapper
Fixes #690.
2018-09-26 10:25:58 -07:00
Bert Belder
f10012facf
build: let rustc pick filenames, remove rust depfile hack
Fixes #787.
2018-09-26 10:25:49 -07:00
Bert Belder
531a427d88
build: do not quote cc_wrapper on windows
This brings behavior inline with the unix toolchain, which also leaves
cc_wrapper unquoted. If necessary, add quotes in the setup phase instead.
2018-09-26 09:52:30 -07:00
Bert Belder
d6a97ae4f0
build: always enable clang color output 2018-09-24 13:45:03 -07:00
Bert Belder
af3f62eedf
build: enable rust color output on windows 2018-09-24 13:45:03 -07:00
Ryan Dahl
24ebd80ae7 Upgrade rust crates. 2018-09-17 12:09:20 -07:00
Bert Belder
836fc255ba
Suppress remaining warnings in third party rust crates 2018-09-16 20:57:17 -07:00
Kevin (Kun) "Kassimo" Qian
0185f9f9de
Add the 'dirs' crate, enable the required 'winapi' features 2018-09-16 18:38:41 -07:00
Bert Belder
ba8757b44a
build: properly rebuild rust crates when their deps change 2018-09-16 18:37:18 -07:00
Bert Belder
30b268dd7d
build: override host_toolchain on windows to use sccache with v8 2018-09-08 23:55:18 +02:00
Ryan Dahl
4ccae957fb Upgrade flatbuffers 2018-09-03 10:45:58 -04:00
Ryan Dahl
d8d5c421c3 Support https imports.
Adds hyper-rustls to the build.

Use ring for sha1 instead of "ssh1" crate.

Fixes #528.
2018-08-30 08:29:28 -04:00
Ryan Dahl
11896647e6 Downgrading tokio to registry version.
Prep for rustls.
2018-08-30 08:29:28 -04:00
Ryan Dahl
902e6e2ee6 Fix warnings.
Ref #374
2018-08-30 05:48:40 -04:00
Bert Belder
542eb54254
tools: make sha256sum.py more generic and move it to 'tools' 2018-08-29 12:28:11 +02:00
Bert Belder
f47582bbc5
build: regenerate BUILD.gn for cacheable windows toolchain 2018-08-28 02:01:42 +02:00
Bert Belder
224cfc8c74
build: fix rust temp file conflicts during parallel build 2018-08-26 19:22:37 +02:00
Bert Belder
3bcf7e271f
Build: make it possible to use ccache/sccache on windows
Also auto-detect the availability of sccache in setup.py.
2018-08-25 14:16:41 +02:00
Thomas Ghysels
7b0618c20b Add hyper dependencies 2018-08-20 16:53:39 -04:00
Andy Hayden
146bc93b81 Add an error message if rustc is not installed 2018-08-18 22:20:53 -04:00
Ryan Dahl
d770cc18f8 Upgrade Rust Flatbuffers 2018-08-16 08:40:11 -04:00
Yoshiya Hinosawa
0ce7b6e870 chore: introduce rust_treat_warnings_as_errors build arg 2018-08-14 10:51:01 -04:00
Ryan Dahl
02540e559d Fix transitive rust deps.
Use a single out_dir for all rust crates.
2018-08-13 13:27:13 -04:00
Ryan Dahl
2c384f2b07 Use source_set for rust_crate 2018-08-13 13:27:13 -04:00
Ryan Dahl
61f5f25f26 s/rust_component/rust_crate/ 2018-08-13 13:27:13 -04:00