use CALayer for macOS backend

This commit is contained in:
Ryan Hileman 2022-04-24 07:31:19 -07:00
parent 75216061b7
commit ba3b823e1c
2 changed files with 25 additions and 29 deletions

View file

@ -26,7 +26,9 @@ x11-dl = "2.19.1"
winapi = "0.3.9"
[target.'cfg(target_os = "macos")'.dependencies]
cocoa = "0.24.0"
core-graphics = "0.22.3"
foreign-types = "0.3.0"
objc = "0.2.7"
[target.'cfg(target_arch = "wasm32")'.dependencies]
@ -49,4 +51,4 @@ features = ["jpeg"]
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
# Turn rayon back on everywhere else; creating the separate entry resets the features to default.
image = "0.23.14"
rayon = "1.5.1"
rayon = "1.5.1"