Skip to content

Pin cocoa-foundation to avoid deprecation warnings - #63408

Open
Vanuan wants to merge 2 commits into
zed-industries:mainfrom
Vanuan:fix_cocoa_non_deprecated
Open

Pin cocoa-foundation to avoid deprecation warnings#63408
Vanuan wants to merge 2 commits into
zed-industries:mainfrom
Vanuan:fix_cocoa_non_deprecated

Conversation

@Vanuan

@Vanuan Vanuan commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

Objective

Prevent build failures on macOS targets caused by deprecation warnings in cocoa-foundation v0.2.1 when compiling with -D warnings / #![deny(warnings)].

When Cargo resolves dependencies for crates depending on cocoa (such as gpui_apple), cocoa v0.26.0 pulls the latest compatible patch version of cocoa-foundation (0.2.1). Because upstream marked cocoa-foundation 0.2.1 as deprecated in favor of objc2, compiler deprecation warnings are emitted, causing hard build failures in strict warning environments.

Solution

  • Pinned cocoa-foundation to exact version =0.2.0 in the workspace manifest (Cargo.toml) and referenced it where necessary to constrain transitive resolution.

Testing

  • Verified that cargo update -p gpui_apple doesn't update cocoa-foundation from 0.2.0 to 0.2.1.
  • Verified with cargo tree -i cocoa-foundation@0.2.0 that all transitive instances of cocoa-foundation resolve strictly to 0.2.0.

Self-Review Checklist:


Release Notes:

  • N/A

@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label Aug 29, 2026
@ChristopherBiscardi ChristopherBiscardi added the platform:macOS Platform-specific feedback for macOS behaviors, features, design, etc label Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement platform:macOS Platform-specific feedback for macOS behaviors, features, design, etc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants