Hacker News new | past | comments | ask | show | jobs | submit login

> In practice you can't combine no_std and std within a single project anyway

This is not in any way the problem.

The reason for having std be the feature instead of having no_std be the feature is because if a dependency unsets the default features because it does not rely on the std feature and then someone else still does rely on the std feature then everything will still work properly.

If no_std is the feature then if a dependency sets the no_std feature because it does not rely on the std features and then someone else does not set no_std because they do rely on the std features then there will be problems because there won't be any ability for the someone else to unset the no_std feature that was specified by the first dependency.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: