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
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
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
224cfc8c74
build: fix rust temp file conflicts during parallel build
2018-08-26 19:22:37 +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
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
Bert Belder
69ee336840
Remove the 'cfg' variable from rust templates
...
It's never been used for anything other than enabling crate features.
Use the 'features' variable instead, it's more readable and more terse.
2018-08-09 02:20:32 +02:00
Bert Belder
15146ad886
Remove 'rust_staticlib' build template
...
It's not used for anything, nor are we planning to use it.
2018-08-09 02:19:20 +02:00
Bert Belder
d8cc487a46
Make 'tokio' build on windows, add windows deps
2018-08-09 01:29:32 +02:00
Bert Belder
4b75dd7cf5
Support building multiple versions of a rust crate
...
This is only to be used in exceptional cases.
Generally we don't allow using multiple versions of a crate.
2018-08-09 01:19:04 +02:00
Robby Madruga
58b2362a24
Add 'tokio' and dependencies
...
Use tokio from git.
2018-08-09 01:13:11 +02:00
Ryan Dahl
229e3b80c5
Improve rust build docs
2018-08-03 10:04:12 -04:00
Ryan Dahl
d8b68648d1
Update repo links to denoland.
2018-08-02 23:12:49 -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
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