Skip to content

Prefer core::marker and core::mem to fix --no-default-features -F gecko-ffi#82

Merged
nicoburns merged 1 commit into
mozilla:mainfrom
kpcyrd:core-for-no-std
Apr 29, 2026
Merged

Prefer core::marker and core::mem to fix --no-default-features -F gecko-ffi#82
nicoburns merged 1 commit into
mozilla:mainfrom
kpcyrd:core-for-no-std

Conversation

@kpcyrd

@kpcyrd kpcyrd commented Apr 29, 2026

Copy link
Copy Markdown
Contributor

I tried updating the Debian package to 0.2.16 and since our tests build a large number of different feature combinations, I noticed some code fails to compile when the std feature is not enabled.

The code doesn't actually need std:: so I changed the import to core::

(thanks @bertptrs for the help checking if this would be a breaking change in the public api)

@nicoburns nicoburns left a comment

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.

Nice - thanks!

@nicoburns

Copy link
Copy Markdown
Collaborator

@kpcyrd Can you run cargo fmt over this please? Also, do you need a release with this change?

@kpcyrd

kpcyrd commented Apr 29, 2026

Copy link
Copy Markdown
Contributor Author

Done :) I can apply the patch downstream, if you don't mind releasing a new version it would save some time for the next person not needing to un-apply the patch again.

@nicoburns nicoburns merged commit 243a458 into mozilla:main Apr 29, 2026
5 checks passed
@nicoburns

Copy link
Copy Markdown
Collaborator

Published as v0.2.17 :)

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