1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-27 16:10:57 -05:00
Commit graph

8365 commits

Author SHA1 Message Date
Ryan Dahl
c775d0c176 Fix warnings in mock_runtime_test.cc 2018-07-18 15:43:50 -04:00
Ryan Dahl
d78254009e Reduce unnecessary build output. 2018-07-18 15:43:50 -04:00
Mike Reinstein
ed9acaec7d update v8 version in readme to match reality 2018-07-14 21:40:25 -04:00
Ryan Dahl
c4f2097c7b Run tools/format.py 2018-07-13 14:38:50 -04:00
Ryan Dahl
691a375eab Add :all target 2018-07-13 14:38:50 -04:00
Ryan Dahl
f9e0a5dece gclient sync should be shallow 2018-07-13 14:38:50 -04:00
Ryan Dahl
2c30a25568 Move C++ test main function to its own file. 2018-07-13 14:38:50 -04:00
Kompwu
936c8f6e4c Create .gitattributes 2018-07-13 19:25:52 +02:00
Ryan Dahl
ad4f335847 Add color to rustc output (except windows) 2018-07-12 17:38:51 -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
Bert Belder
bbcd4c8dd3
Remove channel argument from Rust message callback
This makes `deno` not crash any more.
2018-07-12 21:07:20 +02:00
Faris Amali Alis
7e5f0a7a66 Add nosnapshot executables for faster incremental builds (#359)
Fixes #311.
2018-07-12 15:06:36 -04:00
Ryan Dahl
791357115c
Remove -f option from rustfmt. (#356)
And add support for RUSTFMT_FLAGS (Some people might need -f option)
2018-07-10 19:18:30 -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
Yoshiya Hinosawa
46db20172c chore: use local prettier 2018-07-09 11:05:02 -04:00
Bert Belder
14f208fff9
Regenerate msg_generated.ts
I forgot to commit this file in 8a17db8.
2018-07-09 04:23:58 +02:00
Bert Belder
8a17db8266
Add 'command id' field to messages
This allows for correlating response messages to the command message that
caused them.
2018-07-08 21:01:24 +02:00
Bert Belder
7c5db007de tools: fix windows
This fixes most things, but format.py doesn't work yet, because
yapf is broken due to some depot_tools shimming python.
2018-07-08 13:40:18 -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
Yoshiya Hinosawa
6c79b471aa tools: generate third_party dir and symlinks from the script. (#346)
Everyone needs to run ./tools/build_third_party.py after this commit.
2018-07-08 02:18:14 -04:00
Hao Li
cf0c0668da Rewrite tools/lint.sh in python (#343) 2018-07-08 01:56:03 -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
d4c5ff841e Merge flatbuffer.gni and ts_flatbuffer.gni 2018-07-07 17:40:59 -04:00
Ryan Dahl
bcdd917d79 Fix command in README 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
a2dde56c59 Remove channel parameter from deno_send/recv. 2018-07-06 18:25:09 -04:00
Ryan Dahl
9778eceaf5 Use C++ to do flatbuffer parsing.
- Port protobuf messages to flatbuffers.
- Demo linking to rust from C++ executable.
- Start using the prototype TS libraries.
2018-07-06 17:33:06 -04:00
Ryan Dahl
d9cb093989 Run tools/format.sh 2018-07-06 17:33:06 -04:00
Ryan Dahl
fe404dfce9 Import ts file from prototype without change
From commit 559453cf6c
Excluding v8worker.d.ts, main.ts, and deno.d.ts.

Updates tslint.json to be original settings.
2018-07-06 12:22:11 -04:00
Ryan Dahl
21e1425656 Better c++ error handling 2018-07-06 12:22:11 -04:00
Ryan Dahl
41328d796e Improve README 2018-07-06 10:46:30 -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
Faris Amali Alis
bfe08aa462 Rename deno.cc to binding.cc and other renames (#339)
Fixes #336
2018-07-06 03:19:19 -04:00
Yoshiya Hinosawa
1f6f2f5cae chore: add symlink //third_party/yarn.lock 2018-07-06 01:57:32 -04:00
Yoshiya Hinosawa
c1f430966a chore: reorganize symlinks
resolves #332
2018-07-06 01:57:32 -04:00
Yoshiya Hinosawa
31eda28a64 chore: clean up build_third_party.py 2018-07-05 20:57:42 -04:00
Ryan Dahl
131e0ce4c7 Rename mock_main to deno_cc 2018-07-05 12:41:28 -04:00
Ryan Dahl
06a28998ea Replace protobufs with flatbuffers 2018-07-04 16:43:08 -04:00
Ryan Dahl
72cd03a1c5 Change node_modules cache dir. 2018-07-04 16:43:08 -04:00
Bert Belder
29ba462e7d Fix msg.pb.h path 2018-07-04 21:55:58 +02:00
Yoshiya Hinosawa
2060bc939d Add tools/build_third_party.py (#328)
Fixes #312
2018-07-04 15:04:59 +02:00
Ryan Dahl
15d6541d4d Separate deno.gni and rust.gni and clean up.
Put rust depfile in target_out_dir because the depfile isn't in the
outputs, the gen directory doesn't get created.

Prefix rlib files with lib.
2018-07-04 14:24:25 +02:00
Mike Reinstein
693e43e421 removed now irrelevant kKeep segfault comment 2018-07-04 03:46:52 +02:00
Ryan Dahl
67b50b7d30 Rename .gclient
so it doesn't accidentally get run in root dir.

Ref #322
2018-07-04 03:03:55 +02:00
Ryan Dahl
530e9feab2 deno.gni script locations absolute 2018-07-04 03:03:55 +02:00
Mike Reinstein
24dfbd1568 switch from kClear to kKeep 2018-07-04 01:55:40 +02:00