diff options
Diffstat (limited to 'cli')
-rw-r--r-- | cli/Cargo.toml | 48 | ||||
-rw-r--r-- | cli/file_watcher.rs | 11 |
2 files changed, 29 insertions, 30 deletions
diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 4ea11b25e..91a9b6ab2 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -40,7 +40,7 @@ deno_websocket = { version = "0.74.0", path = "../ext/websocket" } deno_webstorage = { version = "0.64.0", path = "../ext/webstorage" } regex = "=1.6.0" serde = { version = "=1.0.144", features = ["derive"] } -zstd = '=0.11.1' +zstd = '=0.11.2' [target.'cfg(windows)'.build-dependencies] winapi = "=0.3.9" @@ -59,31 +59,31 @@ deno_task_shell = "0.5.2" atty = "=0.2.14" base64 = "=0.13.0" cache_control = "=0.2.0" -chrono = "=0.4.19" +chrono = { version = "=0.4.22", default-features = false, features = ["clock"] } clap = "=3.1.12" clap_complete = "=3.1.2" clap_complete_fig = "=3.1.5" data-url = "=0.1.1" -dissimilar = "=1.0.3" +dissimilar = "=1.0.4" dprint-plugin-json = "=0.15.6" dprint-plugin-markdown = "=0.14.1" dprint-plugin-typescript = "=0.73.1" encoding_rs = "=0.8.31" env_logger = "=0.9.0" -eszip = "=0.27.0" +eszip = "=0.28.0" fancy-regex = "=0.10.0" flate2 = "=1.0.24" -http = "=0.2.6" +http = "=0.2.8" import_map = "=0.12.1" -indexmap = "1.8.1" -indicatif = "=0.17.0" +indexmap = "=1.9.1" +indicatif = "=0.17.1" jsonc-parser = { version = "=0.21.0", features = ["serde"] } libc = "=0.2.126" log = { version = "=0.4.17", features = ["serde"] } mitata = "=0.0.7" monch = "=0.2.0" -notify = "=5.0.0-pre.15" -once_cell = "=1.12.0" +notify = "=5.0.0" +once_cell = "=1.14.0" os_pipe = "=1.0.1" path-clean = "=0.1.0" percent-encoding = "=2.2.0" @@ -94,38 +94,38 @@ ring = "=0.16.20" rustyline = { version = "=10.0.0", default-features = false, features = ["custom-bindings"] } rustyline-derive = "=0.7.0" secure_tempfile = { version = "=3.3.0", package = "tempfile" } # different name to discourage use in tests -semver = "=1.0.13" +semver = "=1.0.14" serde = { version = "=1.0.144", features = ["derive"] } -serde_repr = "=0.1.8" +serde_repr = "=0.1.9" shell-escape = "=0.1.5" tar = "=0.4.38" text-size = "=1.1.0" text_lines = "=0.6.0" -tokio = { version = "=1.19", features = ["full"] } -tokio-util = "=0.7.2" +tokio = { version = "=1.21.1", features = ["full"] } +tokio-util = "=0.7.4" tower-lsp = "=0.17.0" -twox-hash = "=1.6.2" -typed-arena = "2.0.1" -uuid = { version = "=1.0.0", features = ["v4", "serde"] } +twox-hash = "=1.6.3" +typed-arena = "=2.0.1" +uuid = { version = "=1.1.2", features = ["v4", "serde"] } walkdir = "=2.3.2" -zstd = '=0.11.1' +zstd = '=0.11.2' [target.'cfg(windows)'.dependencies] fwdansi = "=1.1.0" winapi = { version = "=0.3.9", features = ["knownfolders", "mswsock", "objbase", "shlobj", "tlhelp32", "winbase", "winerror", "winsock2"] } [dev-dependencies] -csv = "1.1.6" +csv = "=1.1.6" deno_bench_util = { version = "0.63.0", path = "../bench_util" } -dotenv = "0.15.0" +dotenv = "=0.15.0" flaky_test = "=0.1.0" -google-storage1 = "3.1.0" -once_cell = "=1.12.0" +google-storage1 = "=3.1.0" +once_cell = "=1.14.0" os_pipe = "=1.0.1" -pretty_assertions = "=1.2.1" +pretty_assertions = "=1.3.0" test_util = { path = "../test_util" } -trust-dns-client = "=0.21.2" -trust-dns-server = "=0.21.2" +trust-dns-client = "=0.22.0" +trust-dns-server = "=0.22.0" [target.'cfg(unix)'.dev-dependencies] nix = "=0.24.2" diff --git a/cli/file_watcher.rs b/cli/file_watcher.rs index 6c8a142a6..78a5e7a82 100644 --- a/cli/file_watcher.rs +++ b/cli/file_watcher.rs @@ -10,7 +10,6 @@ use deno_runtime::fmt_errors::format_js_error; use log::info; use notify::event::Event as NotifyEvent; use notify::event::EventKind; -use notify::Config; use notify::Error as NotifyError; use notify::RecommendedWatcher; use notify::RecursiveMode; @@ -344,8 +343,8 @@ where fn new_watcher( sender: Arc<mpsc::UnboundedSender<Vec<PathBuf>>>, ) -> Result<RecommendedWatcher, AnyError> { - let mut watcher: RecommendedWatcher = - Watcher::new(move |res: Result<NotifyEvent, NotifyError>| { + let watcher = Watcher::new( + move |res: Result<NotifyEvent, NotifyError>| { if let Ok(event) = res { if matches!( event.kind, @@ -359,9 +358,9 @@ fn new_watcher( sender.send(paths).unwrap(); } } - })?; - - watcher.configure(Config::PreciseEvents(true)).unwrap(); + }, + Default::default(), + )?; Ok(watcher) } |