Skip to content

Commit 903672d

Browse files
committed
Use objc2-core-foundation and objc2-core-services
This is an alternative to updating to fsevent-sys v5.1.
1 parent 9d60140 commit 903672d

File tree

4 files changed

+159
-102
lines changed

4 files changed

+159
-102
lines changed

Cargo.lock

Lines changed: 21 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ flume = "0.11.1"
2525
deser-hjson = "2.2.4"
2626
env_logger = "0.11.2"
2727
file-id = { version = "0.2.3", path = "file-id" }
28-
fsevent-sys = "4.0.0"
28+
objc2-core-foundation = { version = "0.3.2", default-features = false }
29+
objc2-core-services = { version = "0.3.2", default-features = false }
2930
futures = "0.3.30"
3031
inotify = { version = "0.11.0", default-features = false }
3132
insta = "1.34.0"

notify/Cargo.toml

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ categories = ["filesystem"]
1010
authors = [
1111
"Félix Saparelli <[email protected]>",
1212
"Daniel Faust <[email protected]>",
13-
"Aron Heinecke <[email protected]>"
13+
"Aron Heinecke <[email protected]>",
1414
]
1515
rust-version.workspace = true
1616
edition.workspace = true
@@ -21,7 +21,7 @@ repository.workspace = true
2121
default = ["macos_fsevent"]
2222
serde = ["notify-types/serde"]
2323
macos_kqueue = ["kqueue", "mio"]
24-
macos_fsevent = ["fsevent-sys"]
24+
macos_fsevent = ["objc2-core-foundation", "objc2-core-services"]
2525
serialization-compat-6 = ["notify-types/serialization-compat-6"]
2626

2727
[dependencies]
@@ -38,12 +38,32 @@ mio.workspace = true
3838

3939
[target.'cfg(target_os="macos")'.dependencies]
4040
bitflags.workspace = true
41-
fsevent-sys = { workspace = true, optional = true }
41+
objc2-core-foundation = { workspace = true, optional = true, features = [
42+
"std",
43+
"CFDate",
44+
"CFString",
45+
"CFArray",
46+
"CFRunLoop",
47+
"CFError",
48+
"CFURL",
49+
] }
50+
objc2-core-services = { workspace = true, optional = true, features = [
51+
"std",
52+
"libc",
53+
"FSEvents",
54+
] }
4255
kqueue = { workspace = true, optional = true }
4356
mio = { workspace = true, optional = true }
4457

4558
[target.'cfg(windows)'.dependencies]
46-
windows-sys = { workspace = true, features = ["Win32_System_Threading", "Win32_Foundation", "Win32_Storage_FileSystem", "Win32_Security", "Win32_System_WindowsProgramming", "Win32_System_IO"] }
59+
windows-sys = { workspace = true, features = [
60+
"Win32_System_Threading",
61+
"Win32_Foundation",
62+
"Win32_Storage_FileSystem",
63+
"Win32_Security",
64+
"Win32_System_WindowsProgramming",
65+
"Win32_System_IO",
66+
] }
4767

4868
[target.'cfg(any(target_os="freebsd", target_os="openbsd", target_os = "netbsd", target_os = "dragonflybsd", target_os = "ios"))'.dependencies]
4969
kqueue.workspace = true

0 commit comments

Comments
 (0)