1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00
denoland-deno/cli
Bartek Iwańczuk 19f82b0eaa
refactor(core): use JoinSet instead of FuturesUnordered (#19378)
This commit migrates "deno_core" from using "FuturesUnordered" to
"tokio::task::JoinSet". This makes every op to be a separate Tokio task
and should unlock better utilization of kqueue/epoll.

There were two quirks added to this PR:
- because of the fact that "JoinSet" immediately polls spawn tasks,
op sanitizers can give false positives in some cases, this was
alleviated by polling event loop once before running a test with 
"deno test", which gives canceled ops an opportunity to settle
- "JsRuntimeState::waker" was moved to "OpState::waker" so that FFI
API can still use threadsafe functions - without this change the
registered wakers were wrong as they would not wake up the 
whole "JsRuntime" but the task associated with an op

---------

Co-authored-by: Matt Mastracci <matthew@mastracci.com>
2023-06-07 23:50:14 +02:00
..
args refactor: helpers methods on TypeCheckMode (#19393) 2023-06-07 10:09:10 -04:00
bench chore: remove useless benchmark (#19272) 2023-05-26 13:26:21 +00:00
cache fix: do not show cache initialization errors if stderr is piped (#18920) 2023-05-30 13:35:02 -04:00
js fix(ext/web): improve timers resolution for 0ms timeouts (#19212) 2023-05-22 14:09:31 +02:00
lsp perf(cli): conditionally load typescript declaration files (#19392) 2023-06-06 17:07:46 -04:00
napi chore: forward v1.34.1 to main (#19312) 2023-05-29 20:26:03 -06:00
npm refactor: upgrade to deno_npm 0.6 (#19244) 2023-05-24 16:23:10 -04:00
ops refactor(core): remove force_op_registration and cleanup JsRuntimeForSnapshot (#19353) 2023-06-03 14:22:32 -06:00
schemas feat: add support for globs in the config file and CLI arguments for files (#19102) 2023-05-23 03:39:59 +02:00
standalone fix: upgrade to deno_ast 0.27 (#19375) 2023-06-05 19:03:39 -04:00
tests fix(cli): formatting bench with colors (#19323) 2023-06-07 12:27:25 +02:00
tools refactor(core): use JoinSet instead of FuturesUnordered (#19378) 2023-06-07 23:50:14 +02:00
tsc perf(cli): conditionally load typescript declaration files (#19392) 2023-06-06 17:07:46 -04:00
util refactor(core): bake single-thread assumptions into spawn/spawn_blocking (#19056) 2023-05-14 15:40:01 -06:00
auth_tokens.rs chore: upgrade to Rust 1.67 (#17548) 2023-01-27 10:43:16 -05:00
build.rs chore(core): Split JsRuntimeForSnapshot from JsRuntime (#19308) 2023-05-31 08:19:06 -06:00
Cargo.toml fix: upgrade to deno_ast 0.27 (#19375) 2023-06-05 19:03:39 -04:00
deno.ico fix(cli): add icon and metadata to deno.exe on Windows (#6693) 2020-07-15 21:54:38 +02:00
deno_std.rs chore: forward v1.34.1 to main (#19312) 2023-05-29 20:26:03 -06:00
emit.rs refactor: break up ProcState (#18707) 2023-04-14 16:22:33 -04:00
errors.rs feat: TypeScript 5.0.2 (except decorators) (#18294) 2023-03-21 15:46:40 +00:00
factory.rs refactor: helpers methods on TypeCheckMode (#19393) 2023-06-07 10:09:10 -04:00
file_fetcher.rs feat(unstable): add more options to Deno.createHttpClient (#17385) 2023-05-21 03:43:54 +02:00
graph_util.rs refactor: helpers methods on TypeCheckMode (#19393) 2023-06-07 10:09:10 -04:00
http_util.rs feat(unstable): add more options to Deno.createHttpClient (#17385) 2023-05-21 03:43:54 +02:00
js.rs refactor(core): Improve ergonomics of managing ASCII strings (#18498) 2023-04-04 06:46:31 -06:00
main.rs Revert "perf: use jemalloc as global allocator (#18957)" (#19187) 2023-05-19 09:10:33 -04:00
module_loader.rs refactor: helpers methods on TypeCheckMode (#19393) 2023-06-07 10:09:10 -04:00
node.rs refactor(ext/node): allow injecting NodeFs from CLI (#18829) 2023-04-24 19:44:35 -04:00
README.md docs(cli): do not need gen doc for cli (#17260) 2023-01-04 13:19:58 +01:00
resolver.rs feat: top level package.json install when node_modules dir is explicitly opted into (#19233) 2023-05-23 18:51:48 -04:00
version.rs refactor: make version and user_agent &'static str (#18400) 2023-03-23 23:27:58 +01:00
watcher.rs refactor(cli): remove ProcState - add CliFactory (#18900) 2023-05-01 14:35:23 -04:00
worker.rs feat(runtime): support creating workers using custom v8 params (#19339) 2023-06-05 09:22:32 +00:00

Deno CLI Crate

crates

This provides the actual deno executable and the user-facing APIs.

The deno crate uses the deno_core to provide the executable.