New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure that an artifact is indeed no_std #5090

Open
gnzlbg opened this Issue Feb 27, 2018 · 3 comments

Comments

Projects
None yet
2 participants
@gnzlbg

gnzlbg commented Feb 27, 2018

It would be good if cargo build would have a --nostd option that would ensure that the resulting artifact doesn't indeed link against the std library and fails if this is the case.

To check this, it needs to at least check that rustc is not called with the std feature enabled. A bonus point would be to use nm on Linux and MacOSX (and its equivalent on windows) to check that the artifact does not contain any std symbols.

@stale

This comment has been minimized.

stale bot commented Sep 16, 2018

As there hasn't been any activity here in over 6 months I've marked this as stale and if no further activity happens for 7 days I will close it.

I'm a bot so this may be in error! If this issue should remain open, could someone (the author, a team member, or any interested party) please comment to that effect?

The team would be especially grateful if such a comment included details such as:

  • Is this still relevant?
  • If so, what is blocking it?
  • Is it known what could be done to help move this forward?

Thank you for contributing!

If you're reading this comment from the distant future, fear not if this was closed automatically. If you believe it's still an issue please leave a comment and a team member can reopen this issue. Opening a new issue is also acceptable!

@stale stale bot added the stale label Sep 16, 2018

@gnzlbg

This comment has been minimized.

gnzlbg commented Sep 17, 2018

Is this still relevant?

Yes.

If so, what is blocking it?

Nothing.

@stale stale bot removed the stale label Sep 17, 2018

@hobofan

This comment has been minimized.

hobofan commented Nov 12, 2018

For the meantime I built cargo nono to help with this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment