Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
simonbuchan opened this issue Nov 17, 2022 · 1 comment
Open

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

simonbuchan opened this issue Nov 17, 2022 · 1 comment

Comments

@simonbuchan
Copy link

Just hit this build error when I added wry to my app:

error[E0432]: unresolved import `core_foundation::mach_port`
 --> /Users/adamfreeman/.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`

error[E0433]: failed to resolve: could not find `mach_port` in `core_foundation`
  --> /Users/adamfreeman/.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;
   |                                               ^^^^^^^^^ could not find `mach_port` in `core_foundation`

trivial MR to fix this one, just update the dependency to 0.9.2 or 0.9.3, but there's probably more like this, and it may be worth adding something like https://crates.io/crates/cargo-minimal-versions to the CI to catch these in the future.

@simonbuchan
Copy link
Author

Note the local workaround is simply: cargo update -p core-foundation, so this isn't a huge deal!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant