Skip to content

internal: don't generate hash functions if no_std - #6343

Open
Person-93 wants to merge 8 commits into
PyO3:mainfrom
Person-93:no_std_no_hashing
Open

internal: don't generate hash functions if no_std#6343
Person-93 wants to merge 8 commits into
PyO3:mainfrom
Person-93:no_std_no_hashing

Conversation

@Person-93

Copy link
Copy Markdown
Contributor

I've disabled the hash option when not using std as discussed here.

The ui tests do not pass for no_std as it now emits a compile error message about hashing functions not being available without the std feature. I am not sure how to proceed with this.

I've labeled this as internal because no_std is not user-visible yet.

@davidhewitt

Copy link
Copy Markdown
Member

I opened Person-93#1 targeting this branch, which hopefully unblocks you with the UI tests.

@Person-93
Person-93 marked this pull request as ready for review August 24, 2026 14:41

@davidhewitt davidhewitt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks, generally looks good, I would like the error message adjusted please.

(Note that nox -s update-ui-tests only updates the .stderr files, the expectations in the input .rs files need to be updated by hand.)

Comment thread pyo3-macros-backend/src/pyclass.rs Outdated
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