Skip to content

Build failure due to core-graphics version conflict in Zed dependencies #33

@musab

Description

@musab

When creating a new GPUI app using create-gpui-app and attempting to run it with cargo run, the build fails due to a dependency version conflict in the upstream Zed repository.

Steps to Reproduce

  1. Install create-gpui-app: cargo install create-gpui-app
  2. Create a new app: create-gpui-app --name my-gpui-app
  3. Navigate to the directory: cd my-gpui-app
  4. Try to run: cargo run

Error

The build fails with multiple type mismatch errors in zed-font-kit, caused by two different versions of the core-graphics crate being used simultaneously (v0.24.0 and v0.25.0).

error[E0308]: mismatched types
   --> .../font-kit.../src/loaders/core_text.rs:326:17
    |
326 |                 CGPathElementType::MoveToPoint => {
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `core_graphics::path::CGPathElementType`, found `CGPathElementType`

The error occurs because:

  • core_text depends on core-graphics v0.25.0
  • font-kit directly uses core-graphics v0.24.0

Environment

  • OS: macOS (Darwin 24.6.0)
  • Cargo: 1.92.0
  • create-gpui-app: v0.1.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions