Conversation
|
You need to also update It would also be useful to know what compilation error you get with the current 0.24 version. |
|
I have a tiny (I hope yet :-) ) "test" program. [https://github.com/blumenplace/skju/blob/main/mobile/common/Cargo.toml] If I define my cargo dependecies as: piet = { git = "https://github.com/blumenplace/piet" }
piet-coregraphics = { git = "https://github.com/blumenplace/piet" }
core-graphics = "0.24.0"it fails with: error[E0308]: mismatched types
--> /Users/zolkko/.cargo/git/checkouts/piet-a264ecacfc2e7cdc/5283329/piet-coregraphics/src/ct_helpers.rs:216:48
|
216 | let frame = self.0.create_frame(range, path);
| ------------ ^^^^ expected `core_graphics::path::CGPathRef`, found `CGPathRef`
| |
| arguments to this method are incorrect
|
note: there are multiple different versions of crate `core_graphics` in the dependency graphIn the ├── piet-coregraphics v0.8.0 (https://github.com/blumenplace/piet#52833291)
│ ├── associative-cache v2.0.0
│ ├── core-foundation v0.10.1 (*)
│ ├── core-foundation-sys v0.8.7
│ ├── core-graphics v0.24.0 (*)
│ ├── core-text v21.1.0
│ │ ├── core-foundation v0.10.1 (*)
│ │ ├── core-graphics v0.25.0
│ │ │ ├── bitflags v2.11.0
│ │ │ ├── core-foundation v0.10.1 (*)
│ │ │ ├── core-graphics-types v0.2.0 (*)
│ │ │ ├── foreign-types v0.5.0 (*)
│ │ │ └── libc v0.2.182 |
|
The compilation error is: error[E0308]: mismatched types
--> /Users/zolkko/.cargo/git/checkouts/piet-a264ecacfc2e7cdc/5283329/piet-coregraphics/src/ct_helpers.rs:216:48
|
216 | let frame = self.0.create_frame(range, path);
| ------------ ^^^^ expected `core_graphics::path::CGPathRef`, found `CGPathRef`
| |
| arguments to this method are incorrect
|
note: there are multiple different versions of crate `core_graphics` in the dependency graphIf I have the following cargo dependencies: piet = { git = "https://github.com/linebender/piet" }
piet-coregraphics = { git = "https://github.com/linebender/piet" }
core-graphics = "0.24.0"I think compilation errors are caused by: Multiple versions of the Another crate that may cause compilation errors is: but I did not check it. |
|
Hmm, CI is still complaining about |
Hi,
I need to bump the version of core-graphics up to 0.25.0, otherwise the compilation fails.