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
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
21c4b8a42d
Use 2 space indent.
...
Apologies for the churn, but my screen is small. rustfmt assumes big
monitors.
2018-07-20 03:46:26 -04:00
Ryan Dahl
a7bf154cb8
Wrap rust at 80 columns.
2018-07-20 03:46:26 -04:00
Ryan Dahl
ae393879a7
cleanup: Move C extern code to src/binding.rs
2018-07-19 08:29:26 -04:00
Ryan Dahl
b892188878
Better exception output.
2018-07-18 15:43:50 -04:00
Ryan Dahl
3e51605bc9
Execute JS for the first time in Rust rewrite.
...
Implements code_fetch handler in Rust.
Add ability to embed string assets (for typescript declaration files)
Remove deno_cc and deno_cc_nosnapshot targets.
2018-07-18 15:43:50 -04:00
Ryan Dahl
c4f2097c7b
Run tools/format.py
2018-07-13 14:38:50 -04:00
Bert Belder
24b0e91d80
Move buffers between V8 and native
...
* send()/recv() now operate on TypedArrays rather than ArrayBuffers.
* Remove a copy (through ArrayBuffer.slice()) from the send path.
* Remove a copy (through v8::ArrayBuffer::New()) from the return path.
* After moving a buffer from JS to native, the ArrayBuffer object and
it's views are made inaccessible ('neutered').
* `struct deno_buf` now holds two [ptr, length] tuples, one for the actual
memory allocation, and one for the logical data contained therein.
This is necessary because flatbuffers fills it's buffer bottom-up, so
the serialized blob doesn't start at beginning of the buffer, but
somewhere in the middle.
2018-07-12 21:26:38 +02:00