Skip to content

Pax | Switching key to u8 and update on Pax header doc header#391

Open
gwitrand-ovh wants to merge 1 commit into
composefs:mainfrom
gwitrand-ovh:pax_cleanup
Open

Pax | Switching key to u8 and update on Pax header doc header#391
gwitrand-ovh wants to merge 1 commit into
composefs:mainfrom
gwitrand-ovh:pax_cleanup

Conversation

@gwitrand-ovh
Copy link
Copy Markdown
Contributor

Following PR #382 comments

@gwitrand-ovh
Copy link
Copy Markdown
Contributor Author

This might not be recommended since key() converts the key into str.

Writing the key through str might me more straight forward in the long run
image

Comment thread src/pax.rs
pub fn append_pax_extensions<'key, 'value>(
&mut self,
headers: impl IntoIterator<Item = (&'key str, &'value [u8])>,
headers: impl IntoIterator<Item = (&'key [u8], &'value [u8])>,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Unfortunately we already published the previous PR, we can't break the API. We could add a new one...but I'm not sure, maybe we only do it if there's an actual use case?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, it's better like that I think.
If needed one day, this PR could be merged to fix the issue later

@xzfc xzfc added the breaking-change-wishlist Breaking changes that could be including in the next SemVer-incompatible release. label Nov 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking-change-wishlist Breaking changes that could be including in the next SemVer-incompatible release.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants