-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Add no_std Checks to CI #15840
Copy link
Copy link
Closed
Labels
A-Build-SystemRelated to build systems or continuous integrationRelated to build systems or continuous integrationC-FeatureA new feature, making something new possibleA new feature, making something new possibleD-StraightforwardSimple bug fixes and API improvements, docs, test and examplesSimple bug fixes and API improvements, docs, test and examplesS-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!This issue is ready for an implementation PR. Go for it!
Metadata
Metadata
Assignees
Labels
A-Build-SystemRelated to build systems or continuous integrationRelated to build systems or continuous integrationC-FeatureA new feature, making something new possibleA new feature, making something new possibleD-StraightforwardSimple bug fixes and API improvements, docs, test and examplesSimple bug fixes and API improvements, docs, test and examplesS-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!This issue is ready for an implementation PR. Go for it!
What problem does this solve or what need does it fill?
Bevy contains a number of
no_stdcrates (with more hopefully on the way!), but there are currently no tests in the CI to ensure they actually areno_stdcompatible. If anystddependency is added (even transiently!), it will break this guarantee.What solution would you like?
no_stdtargets to a specificno_stdcargo buildCI action. The most obvious platform would bex86_64_unknown-none, since Bevy is known to work onx86_64across many operating systems. However, more could be added based on community usage (e.g., Raspberry Pi, STM32, etc.). This would ensure it is possible to build Bevy and/or its crates without thestdlibrary being linked.stdfeature (and possiblyallocas well) to ensure unit tests pass in ano_stdenvironment. Note that these tests can be run on a platform with thestdlibrary, since the above test ensures that thestdlibrary isn't used directly or transiently.What alternative(s) have you considered?
We could do nothing for now. Since the Bevy
no_stdcommunity is just starting, there are currently no users to complain ifno_stdsupport is broken.