Skip to content

fix(deps): gate keyring platform features behind target-specific deps#8039

Open
r0x0d wants to merge 1 commit intoblock:mainfrom
r0x0d:gate-features
Open

fix(deps): gate keyring platform features behind target-specific deps#8039
r0x0d wants to merge 1 commit intoblock:mainfrom
r0x0d:gate-features

Conversation

@r0x0d
Copy link
Contributor

@r0x0d r0x0d commented Mar 20, 2026

Summary

Move platform-specific keyring features to target-gated dependency sections so each OS only pulls in its native backend:

  • macOS: apple-native
  • Windows: windows-native
  • Linux: sync-secret-service

The vendored feature remains on the base dependency as it applies cross-platform (libdbus, openssl).

Testing

Related Issues

Relates to #ISSUE_ID
Discussion: LINK (if any)

Screenshots/Demos (for UX changes)

Before:

After:

Move platform-specific keyring features to target-gated dependency
sections so each OS only pulls in its native backend:
- macOS: apple-native
- Windows: windows-native
- Linux: sync-secret-service

The vendored feature remains on the base dependency as it applies
cross-platform (libdbus, openssl).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Rodolfo Olivieri <rolivier@redhat.com>
Copy link
Collaborator

@DOsinga DOsinga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean, correct Cargo hygiene fix — moving platform-specific keyring backends to the right [target.'cfg(...)'.dependencies] sections so each OS only pulls in its own native backend. The vendored feature correctly stays on the base dep since it's cross-platform. No concerns, approving.

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

Successfully merging this pull request may close these issues.

2 participants