nannou-org/nannou

core-graphics requires core-foundation 0.9.3 for mach_port

Opened this issue · 1 comments

Seeing this build error when trying to run examples:

$ cargo run --release --example draw

...
error[E0432]: unresolved import `core_foundation::mach_port`
 --> /Users/mcraig/.cargo/registry/src/github.com-1ecc6299db9ec823/core-graphics-0.22.3/src/event.rs:4:5
  |
4 |     mach_port::{CFMachPort, CFMachPortRef},
  |     ^^^^^^^^^ could not find `mach_port` in `core_foundation`

   Compiling emath v0.15.0
error[E0433]: failed to resolve: could not find `mach_port` in `core_foundation`
  --> /Users/mcraig/.cargo/registry/src/github.com-1ecc6299db9ec823/core-graphics-0.22.3/src/sys.rs:32:44
   |
32 |     pub type CGEventTapRef = core_foundation::mach_port::CFMachPortRef;
   |

Can be resolved by updating to core-foundation 0.9.3, but there are multiple versions in the project:

$ cargo update -p core-foundation@0.9.3

Looks like cargo update solves this and a few other dependency issues.