1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-14 16:33:45 -05:00
Commit graph

713 commits

Author SHA1 Message Date
Robby Madruga
99932f6422 Change Deno::new to return an owned Box 2018-08-09 14:59:49 -07:00
Ryan Dahl
9d90c4ae95
Adds js/unit_tests.ts (#448) 2018-08-09 14:48:17 -07:00
Ryan Dahl
413bcf2042 Add readFileSync 2018-08-09 14:27:46 -07:00
Ryan Dahl
72544de443 Add fs::read_file_sync_string 2018-08-09 14:27:46 -07:00
Ryan Dahl
040a042679 Add TextEncoder/TextDecoder support.
Fixes #470

This commit increases size:
out/release/gen/bundle/main.js      7.3M -> 7.9M
out/release/gen/bundle/main.js.map   11M -> 12M
out/release/gen/snapshot_deno.bin    34M -> 37M
out/release/deno                     49M -> 53M

Note the amount in the JS code added is quite small:
4.0K    node_modules/text-encoding/index.js
4.0K    node_modules/@types/text-encoding/index.d.ts
4.0K    js/text_encoding.ts

Unclear to me what is causing the jump in snapshot size.
2018-08-09 14:27:46 -07:00
Ryan Dahl
fb87cb38ec
First pass at setTimeout with Tokio (#434) 2018-08-09 12:17:08 -07:00
Kitson Kelly
0e96125260 Use sourcemapFile to reroot sourcemap sources 2018-08-08 23:00:44 -07:00
Ryan Dahl
038c5f0727 Remove RUSTFMT_FLAGS 2018-08-08 18:35:26 -07:00
Ryan Dahl
51380bf399 Organize libdeno functions. 2018-08-08 18:35:26 -07:00
Ryan Dahl
4a1ccdeadb Change rustfmt flags. For v0.8.2. 2018-08-08 18:35:26 -07:00
Ryan Dahl
7895964ee1 Better error for 'No such asset' 2018-08-08 18:35:26 -07:00
Ryan Dahl
070c5f85da Fix rust logger. 2018-08-08 18:35:26 -07:00
Ryan Dahl
69f73ee368 Hacky error handling for Url::from_file_path. 2018-08-08 18:35:26 -07:00
Ryan Dahl
f632797bc8 Print output even when test failed. 2018-08-08 18:35:26 -07: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
98e8b102fd
Fix test_cc build dependencies 2018-08-09 02:03:24 +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
942b3090e7 Remove yarn.lock
Fixes #393.
2018-08-08 10:08:18 -07:00
Kitson Kelly
817380a2d9 Generate declarations 2018-08-08 04:17:46 -07:00
Kitson Kelly
eda1c7b74a Create ASSETS const in runtime.ts 2018-08-08 04:17:46 -07:00
Kitson Kelly
28078cf441 Rename lib.deno.d.ts to lib.globals.d.ts 2018-08-08 04:17:46 -07:00
Ryan Dahl
b8e0ce4d16 Add Cargo.lock to .gitignore. 2018-08-07 10:08:19 -04:00
Ryan Dahl
376f4dfcbf travis: adjust cache
- cache sysroot and llvm-build so they don't have to be downloaded each time.
- Remove DENO_BUILD_PATH from cache. ccache does all the heavy lifting, no need
  to cache the build dir.
2018-08-07 10:08:19 -04:00
Ryan Dahl
d09a552aff Remove //third_party/v8/third_party/depot_tools
It was a duplicate of //third_party/depot_tools
2018-08-07 10:08:19 -04:00
Ryan Dahl
e9bc278933 Disable CFI for now.
Fixes Linux release build.
2018-08-07 10:08:19 -04:00
Bert Belder
fbb6cd4b82
Appveyor updates
* Don't update the cache after building a PR or feature branch.
* Work around 'rustup update' erroring when an update is found.
* Log deleted directories and success/failure status.
* Make build log less noisy.
2018-08-04 06:01:58 +02:00
Ryan Dahl
60f6067cf9 Implement os.exit 2018-08-03 22:41:59 -04:00
Mihal Malostanidis
d15d334c24 Replace protobuf with flatbuffer 2018-08-03 12:15:52 -04:00
Ryan Dahl
2830023f65 Fix badges
Add gitter link.
2018-08-03 10:28:02 -04:00
Ryan Dahl
229e3b80c5 Improve rust build docs 2018-08-03 10:04:12 -04:00
Ryan Dahl
d63e03a8e7 Use build.py -j2 on travis.
Avoids OOM during rollup.
2018-08-02 23:12:49 -04:00
Ryan Dahl
d8b68648d1 Update repo links to denoland. 2018-08-02 23:12:49 -04:00
Ryan Dahl
3e5e07289e Update README 2018-08-02 17:16:24 -04:00
Ryan Dahl
c7c6203e61
Source map support (#429)
This change increases size:
out/debug/obj/libdeno/from_snapshot.o  19M -> 34M
out/release/deno                       32M -> 47M
2018-08-02 13:13:32 -04:00
Ryan Dahl
e30bdb71aa Fix snapshot build dependencies. 2018-08-02 12:49:40 -04:00
Ryan Dahl
193b3965ca Travis: cache ~/.cargo 2018-08-02 12:49:40 -04:00
Ryan Dahl
7fe656f4b9 Add 005_more_imports.ts
And run check_output_test in order.
2018-08-02 12:49:40 -04:00
Ryan Dahl
421358e7a9 Remove dispatch.ts and move assignCmdId to util.ts 2018-08-02 12:49:40 -04:00
Bert Belder
df8208557d
Set up Appveyor 2018-08-02 03:56:49 +02:00
Bert Belder
788b0795de
util: make symlink() work on older Windows versions 2018-08-02 02:59:37 +02:00
Bert Belder
e5b7d31aba
tools/setup: avoid running gn gen twice in the same output directory 2018-08-02 02:59:36 +02:00
Bert Belder
446081b1e6
rollup: add extension to mock_builtin.js 2018-08-02 02:59:36 +02:00
Bert Belder
1a6ba1f812
tools: fix tools/clang symlink on startup 2018-08-02 02:59:36 +02:00
Karl Horky
2adc9bd580 Update protobuf link to flatbuffer
Ref: https://github.com/ry/deno/pull/330
2018-08-01 14:59:37 -04:00
Ryan Dahl
6b6fac209c Optimize compile time by using asm.
Switches to using asm incbin to embed the V8 snapshot instead of
outputing C code and then compiling it.

Compile time for from_snapshot.o goes from 44s to 1s.
2018-08-01 12:14:10 -04:00
Ryan Dahl
db8dc0e9f8 Better handling of exceptions during snapshot creation. 2018-08-01 12:14:10 -04:00
Ryan Dahl
ae82db54f6 build: use compiled_action for create_snapshot.
Switch the order of the snapshot_creator args, in order to allow for
optional source map arg.
2018-08-01 12:14:10 -04:00