mirror of
https://github.com/denoland/deno.git
synced 2025-02-08 07:16:56 -05:00
use kqueue with notify 5
This commit is contained in:
parent
01242c1d15
commit
62df2e45cf
6 changed files with 4 additions and 16 deletions
11
Cargo.lock
generated
11
Cargo.lock
generated
|
@ -2765,15 +2765,6 @@ dependencies = [
|
|||
"winapi",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "fsevent-sys"
|
||||
version = "4.1.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "76ee7a02da4d231650c7cea31349b889be2f45ddb3ef3032d2ec8185f6313fd2"
|
||||
dependencies = [
|
||||
"libc",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "fslock"
|
||||
version = "0.2.1"
|
||||
|
@ -4223,9 +4214,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|||
checksum = "ed2c66da08abae1c024c01d635253e402341b4060a12e99b31c7594063bf490a"
|
||||
dependencies = [
|
||||
"bitflags 1.3.2",
|
||||
"crossbeam-channel",
|
||||
"filetime",
|
||||
"fsevent-sys",
|
||||
"inotify",
|
||||
"kqueue",
|
||||
"libc",
|
||||
|
|
|
@ -129,7 +129,7 @@ log = "0.4.20"
|
|||
lsp-types = "=0.94.1" # used by tower-lsp and "proposed" feature is unstable in patch releases
|
||||
memmem = "0.1.1"
|
||||
monch = "=0.5.0"
|
||||
notify = "=5.0.0"
|
||||
notify = { version = "=5.0.0", default-features = false, features = ["macos_kqueue"] }
|
||||
num-bigint = { version = "0.4", features = ["rand"] }
|
||||
once_cell = "1.17.1"
|
||||
os_pipe = { version = "=1.1.5", features = ["io_safety"] }
|
||||
|
|
|
@ -22,7 +22,7 @@ Deno.test({ permissions: { read: true } }, function watchFsInvalidPath() {
|
|||
} else {
|
||||
assertThrows(() => {
|
||||
Deno.watchFs("non-existent.file");
|
||||
}, Deno.errors.NotFound);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -32,7 +32,7 @@ async function getTwoEvents(
|
|||
const events = [];
|
||||
for await (const event of iter) {
|
||||
events.push(event);
|
||||
if (events.length > 2) break;
|
||||
if (events.length >= 2) break;
|
||||
}
|
||||
return events;
|
||||
}
|
||||
|
|
Binary file not shown.
|
@ -45,8 +45,6 @@ done
|
|||
|
||||
args+=("-L$(dirname "$(realpath "$0")")")
|
||||
args+=("-llzld_${arch}")
|
||||
# Needed for fsevents. TODO: add patches for these as well.
|
||||
args+=("-framework" "CoreFoundation" "-framework" "CoreServices")
|
||||
|
||||
exec "$lld" "${args[@]}"
|
||||
|
||||
|
|
|
@ -22,3 +22,4 @@ extern void *MTLCopyAllDevices(void) {
|
|||
|
||||
return MTLCopyAllDevices_();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue