Skip to content

Commit 57cc49a

Browse files
lordcmyr
authored andcommitted
add ios as a coregraphics os
1 parent 66675d9 commit 57cc49a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

piet-common/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ piet-cairo = { version = "=0.5.0", path = "../piet-cairo" }
4343
cairo-rs = { version = "0.14.0", default_features = false }
4444
cairo-sys-rs = { version = "0.14.0" }
4545

46-
[target.'cfg(target_os="macos")'.dependencies]
46+
[target.'cfg(any(target_os="macos", target_os="ios"))'.dependencies]
4747
piet-coregraphics = { version = "=0.5.0", path = "../piet-coregraphics" }
4848
core-graphics = { version = "0.22.2" }
4949

piet-common/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ cfg_if::cfg_if! {
3838
} else if #[cfg(any(target_os = "linux", target_os = "openbsd"))] {
3939
#[path = "cairo_back.rs"]
4040
mod backend;
41-
} else if #[cfg(target_os = "macos")] {
41+
} else if #[cfg(any(target_os = "macos", target_os = "ios"))] {
4242
#[path = "cg_back.rs"]
4343
mod backend;
4444
} else if #[cfg(target_os = "windows")] {

0 commit comments

Comments
 (0)