Ryan Dahl
3c8d2bde68
Support request method and headers in fetch() ( #1188 )
...
Adds a general HttpHeader flatbuffer message for serializing requests
and responses.
2018-11-14 17:36:34 -08:00
Ryan Dahl
f2223fb9ad
Wrapper around hyper::Body so it can be used as AsyncRead
2018-11-13 21:44:38 -08:00
Andy Hayden
7a17e2aec6
Remove flags::process
...
It was doing two independent things:
- print help and exit
- set log level
It's better to do those explicitly in main.rs
2018-11-06 06:25:38 -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
Andy Hayden
1241b8e9ba
Fix clippy warnings ( #1149 )
...
Run with: cargo clippy
https://github.com/rust-lang-nursery/rust-clippy
2018-11-04 06:04:24 -08:00
Bert Belder
b9914c3113
third_party: add tokio-process Rust crate and its dependencies
2018-11-03 07:42:24 +01:00
Ryan Dahl
ee24254bad
Rename EnvPair to KeyValue.
2018-11-02 20:50:01 -07: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
Joseph
21dac66465
Better output on panic ( #1129 )
2018-10-31 07:30:52 -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
882a323811
Minor sorting not handled by format.
2018-10-27 08:08:51 -07:00
Ryan Dahl
6adc87e3eb
Ergonomics: Prompt TTY for permission escalation ( #1081 )
2018-10-27 06:11:39 -07:00
Ryan Dahl
fd68f85ce8
libdeno: deno_new should take a snapshot parameter.
2018-10-24 14:52:38 -07:00
Bert Belder
ae00df73a2
Move eager functions into eager_unix.rs
2018-10-24 11:16:00 +02:00
Kevin (Kun) "Kassimo" Qian
988ec88dd0
Switch to getopts for flag parsing ( #1080 )
2018-10-23 21:02:43 -07:00
Ryan Dahl
2af25b1957
Allow partial writes.
...
Do not use tokio_io::io:write_all().
Adds src/tokio_write.rs
2018-10-20 12:39:56 -07:00
Andy Hayden
fb90c6f525
Exit cleanly on unrecognized arguments ( #990 )
...
Refactor set_flags to return a Result
2018-10-15 14:26:22 -04:00
Ryan Dahl
417ea7bb6d
src/http.rs -> src/http_util.rs
...
So as not to conflict with http crate.
2018-10-10 14:29:55 -04:00
Ryan Dahl
cfa54cabbd
Always die on panic.
2018-10-05 14:27:47 -04:00
Ryan Dahl
51dc46eff4
Rename msg_from_js() to dispatch().
2018-10-04 00:25:55 -04:00
Ryan Dahl
d38c4e0ff1
Rename handler.rs to ops.rs
2018-10-04 00:25:55 -04:00
Ryan Dahl
0422b224e8
First pass at support for TCP servers and clients. ( #884 )
...
Adds deno.listen(), deno.dial(), deno.Listener and deno.Conn.
2018-10-03 23:58:29 -04:00
Ryan Dahl
42c5b103ec
Rename FdTable to ResourceTable.
...
Add docs to src/resources.rs.
2018-10-01 22:30:57 -04:00
Ryan Dahl
bcbbee7399
Adds basic File I/O and FD table.
...
Adds deno.stdin, deno.stdout, deno.stderr, deno.open(), deno.write(),
deno.read(), deno.Reader, deno.Writer, deno.copy().
Fixes #721 . tests/cat.ts works.
2018-09-28 20:53:33 -04:00
Ryan Dahl
df09fbad92
Use the thread pool for blocking I/O
2018-09-26 14:43:26 -04:00
Ryan Dahl
4fd2b19f64
Make Deno multithreaded.
...
By using the tokio default runtime.
This patch makes all of the ops thread safe.
Adds libdeno to JS globals to make for easier testing.
Preliminary work for #733 .
2018-09-25 17:02:49 -04:00
Ryan Dahl
7c128df4a0
Use lazy_static for HttpsConnector
...
And rename net.rs to http.rs
Share HTTP connection.
2018-09-25 17:02:49 -04:00
Ryan Dahl
a6f6d0b712
Clean up flags.
2018-09-25 17:02:49 -04:00
Ryan Dahl
6143a64256
Rename Deno to Isolate and move to own file.
2018-09-17 20:07:53 -07:00
Kevin (Kun) "Kassimo" Qian
c7a4ca3c88
Use dirs::home_dir
to replace deprecated std::env::home_dir
2018-09-16 18:39:07 -07:00
Kevin (Kun) "Kassimo" Qian
1ffae65165
Add remove(), removeAll().
...
and removeSync(), removeAllSync().
2018-09-12 10:24:17 -04:00
Ryan Dahl
a4f1b367b9
Remove namespace from src/msg.fbs
2018-09-09 23:12:22 -04:00
Ryan Dahl
e7741ab97f
Rename src/binding.rs -> src/libdeno.rs
2018-09-05 22:27:47 -04:00
J2P
f949ded933
Log level code refactoring
2018-09-02 19:16:50 -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
Bert Belder
ceaf822682
Implement makeTempDirSync()
2018-08-29 22:40:05 +02:00
Ryan Dahl
e2f9b0e6fd
First pass at HTTP imports
...
Implement --reload
Integrate hyper errors into DenoError
In collaboration with Tommy Savaria <tommy.savaria@protonmail.ch>
2018-08-23 09:41:08 -04:00
Ryan Dahl
18d495c7d1
Better error handling in src/handlers.rs
...
Introduces error codes that are shared between JS/RS
Fixes #526 .
2018-08-21 15:37:45 -04:00
Ryan Dahl
868e8d8866
First pass at fetch()
...
With help from Thomas Ghysels <info@thomasg.be>
2018-08-20 16:53:39 -04:00
Ryan Dahl
17b9c5c390
Command line flag parsing ( #524 )
...
In particular this allow -D for logging debug output.
2018-08-17 16:34:30 -04:00
Ryan Dahl
36d82374cf
Implement deno_handle_msg_from_js in Rust
...
Fixes #419 , #414 .
2018-08-16 08:40:11 -04:00
Robby Madruga
99932f6422
Change Deno::new to return an owned Box
2018-08-09 14:59:49 -07:00
Ryan Dahl
fb87cb38ec
First pass at setTimeout with Tokio ( #434 )
2018-08-09 12:17:08 -07:00
Ryan Dahl
070c5f85da
Fix rust logger.
2018-08-08 18:35:26 -07:00
Ryan Dahl
4d386e9e1c
Implement CodeCache
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
20a41aa9b5
Add from_c() to get a Deno object from ptr.
...
This is a utility function for CodeCache and other handlers.
2018-07-29 00:22:39 -04:00
Ryan Dahl
e7445507aa
Implement a logger so we can get logging output.
2018-07-29 00:22:39 -04:00
robbym
180170d860
Add --v8-options flag ( #405 )
2018-07-25 21:27:27 -04:00