Skip to content

pod!: bytemuk behind feature#181

Merged
grod220 merged 3 commits intomainfrom
bytemuck-feature-flag
Feb 26, 2026
Merged

pod!: bytemuk behind feature#181
grod220 merged 3 commits intomainfrom
bytemuck-feature-flag

Conversation

@grod220
Copy link
Member

@grod220 grod220 commented Feb 25, 2026

  • Gate all bytemuck derives behind a feature flag in spl-pod
  • Set default = [] so consumers opt in to only the features they need

bytemuck_derive = { version = "1.10.1", optional = true }
serde = { version = "1.0.228", optional = true, features = ["derive"] }
solana-address = { version = "2.2.0", features = ["bytemuck"] }
solana-address = { version = "2.2.0", features = ["copy"] }
Copy link
Member Author

Choose a reason for hiding this comment

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

Previously provided transitively by bytemuck feature, now needs it explicitly added

@grod220 grod220 mentioned this pull request Feb 25, 2026
11 tasks
Base automatically changed from list-view-migration-pt2 to main February 26, 2026 08:56
@grod220 grod220 force-pushed the bytemuck-feature-flag branch from 21d48c2 to 50838e2 Compare February 26, 2026 08:58
@grod220 grod220 marked this pull request as ready for review February 26, 2026 09:05
@grod220 grod220 requested review from febo and joncinque February 26, 2026 09:06
Copy link
Contributor

@joncinque joncinque left a comment

Choose a reason for hiding this comment

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

Looks great overall! Just the question on the Copy bound

@grod220 grod220 requested a review from joncinque February 26, 2026 16:10
Copy link
Contributor

@joncinque joncinque left a comment

Choose a reason for hiding this comment

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

Looks great!

@grod220 grod220 merged commit e1e56b7 into main Feb 26, 2026
47 checks passed
@grod220 grod220 deleted the bytemuck-feature-flag branch February 26, 2026 16:58
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