mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 15:24:46 -05:00
build: cli(build) shouldn't depend on deno_runtime (#10787)
This speeds up incremental rebuild when only touching JS files by 30% compared to #10786. Rebuild time after touch 01_broadcast_channel.js: main: run 1 49.18s, run 2 50.34s #10786: run 1 43.12s, run 2 43.19s this + #10786: run 1 30.30s, run 2 30.95s
This commit is contained in:
parent
10e50a1207
commit
83ce333633
3 changed files with 25 additions and 12 deletions
12
Cargo.lock
generated
12
Cargo.lock
generated
|
@ -529,10 +529,22 @@ dependencies = [
|
|||
"chrono",
|
||||
"clap",
|
||||
"data-url",
|
||||
"deno_broadcast_channel",
|
||||
"deno_console",
|
||||
"deno_core",
|
||||
"deno_crypto",
|
||||
"deno_doc",
|
||||
"deno_fetch",
|
||||
"deno_file",
|
||||
"deno_lint",
|
||||
"deno_runtime",
|
||||
"deno_timers",
|
||||
"deno_url",
|
||||
"deno_web",
|
||||
"deno_webgpu",
|
||||
"deno_webidl",
|
||||
"deno_websocket",
|
||||
"deno_webstorage",
|
||||
"dissimilar",
|
||||
"dprint-plugin-json",
|
||||
"dprint-plugin-markdown",
|
||||
|
|
|
@ -20,8 +20,19 @@ harness = false
|
|||
path = "./bench/main.rs"
|
||||
|
||||
[build-dependencies]
|
||||
deno_core = { path = "../core", version = "0.88.0" }
|
||||
deno_runtime = { path = "../runtime", version = "0.15.0" }
|
||||
deno_broadcast_channel = { path = "../extensions/broadcast_channel", version = "0.1.0" }
|
||||
deno_console = { version = "0.7.0", path = "../extensions/console" }
|
||||
deno_core = { version = "0.88.0", path = "../core" }
|
||||
deno_crypto = { version = "0.21.0", path = "../extensions/crypto" }
|
||||
deno_fetch = { version = "0.29.0", path = "../extensions/fetch" }
|
||||
deno_file = { version = "0.6.0", path = "../extensions/file" }
|
||||
deno_timers = { version = "0.5.0", path = "../extensions/timers" }
|
||||
deno_url = { version = "0.7.0", path = "../extensions/url" }
|
||||
deno_web = { version = "0.38.0", path = "../extensions/web" }
|
||||
deno_webgpu = { version = "0.8.0", path = "../extensions/webgpu" }
|
||||
deno_webidl = { version = "0.7.0", path = "../extensions/webidl" }
|
||||
deno_websocket = { version = "0.12.0", path = "../extensions/websocket" }
|
||||
deno_webstorage = { version = "0.2.0", path = "../extensions/webstorage" }
|
||||
regex = "1.4.3"
|
||||
serde = { version = "1.0.125", features = ["derive"] }
|
||||
|
||||
|
|
10
cli/build.rs
10
cli/build.rs
|
@ -8,16 +8,6 @@ use deno_core::serde_json::json;
|
|||
use deno_core::serde_json::Value;
|
||||
use deno_core::JsRuntime;
|
||||
use deno_core::RuntimeOptions;
|
||||
use deno_runtime::deno_broadcast_channel;
|
||||
use deno_runtime::deno_console;
|
||||
use deno_runtime::deno_crypto;
|
||||
use deno_runtime::deno_fetch;
|
||||
use deno_runtime::deno_file;
|
||||
use deno_runtime::deno_url;
|
||||
use deno_runtime::deno_web;
|
||||
use deno_runtime::deno_webgpu;
|
||||
use deno_runtime::deno_websocket;
|
||||
use deno_runtime::deno_webstorage;
|
||||
use regex::Regex;
|
||||
use std::collections::HashMap;
|
||||
use std::env;
|
||||
|
|
Loading…
Reference in a new issue