Skip to content

internal: add cfg wip_feature_std in build script#6155

Open
Person-93 wants to merge 1 commit into
PyO3:mainfrom
Person-93:faux-std-feature
Open

internal: add cfg wip_feature_std in build script#6155
Person-93 wants to merge 1 commit into
PyO3:mainfrom
Person-93:faux-std-feature

Conversation

@Person-93

Copy link
Copy Markdown
Contributor

Adds a faux std feature that is enabled by default. It can be disabled by setting an environment variable at build time: PYO3_WIP_NO_STD=1.

It can be used like this:

#[cfg(wip_feature_std)]
use std::thread;

This will be useful while working on no_std support. Once no_std is ready to be shipped, we can mechanically replace all instances of wip_feature_std with feature(std) and remove the cfg option.

Discussed here: #6058 (comment)

@Person-93 Person-93 changed the title add cfg wip_feature_std in build script internal: add cfg wip_feature_std in build script Jun 22, 2026
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.

1 participant