nannou-org / nannou

A Creative Coding Framework for Rust.
https://nannou.cc/
6.05k stars 307 forks source link

core-graphics requires core-foundation 0.9.3 for mach_port #901

Open markuscraig opened 1 year ago

markuscraig commented 1 year ago

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
markuscraig commented 1 year ago

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