Skip to content

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

Merged
nicoburns merged 1 commit intomozilla: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 intomozilla:mainfrom
kpcyrd:core-for-no-std

Conversation

@kpcyrd
Copy link
Copy Markdown
Contributor

@kpcyrd kpcyrd commented Apr 29, 2026

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)

Copy link
Copy Markdown
Collaborator

@nicoburns nicoburns left a comment

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
Copy link
Copy Markdown
Contributor Author

kpcyrd commented Apr 29, 2026

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