Skip to content
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

Consider flag to mark unstable targets #92

Open
madsmtm opened this issue Feb 3, 2025 · 3 comments
Open

Consider flag to mark unstable targets #92

madsmtm opened this issue Feb 3, 2025 · 3 comments

Comments

@madsmtm
Copy link

madsmtm commented Feb 3, 2025

(I wasn't really sure where to file this, so it's going here, but might be more relevant on the Cargo repo).

Currently, users of Tier 3 targets are (effectively) required to use a nightly compiler, by virtue of -Zbuild-std being unstable. As we move towards stabilizing -Zbuild-std, this will likely change, and users are going to use Tier 3 targets on stable.

As co-maintainer of the Apple target triples, I think there's value in some targets being unstable:

  • Users of it are on nightly, so will get fixes faster, which is useful when the target is newly added (there's usually an iteration period before it gets well supported).
  • It sends a clear signal that the target isn't as well supported (the name "Tier 3" does this too, but fewer people read the platform support docs).
  • It makes it easier to do breaking changes like renaming the target.

Do you think it'd make sense to have a rustc/Cargo flag like -Zunstable-targets (or maybe merge under -Zunstable-options), and then mark certain targets as unstable, and require the use of this flag?

@Lokathor
Copy link

Lokathor commented Feb 3, 2025

As the maintainer of two Tier 3 targets (that are the same target with different default cpu features), i would absolutely not want this to be applied to my own targets.

please remember that Nightly is no guarantee of getting fixes faster. I know plenty of people (including me) who use Nightly because they must, but still don't run rustup update until they hear about a new stable release and maybe remember to update the compiler.

@madsmtm
Copy link
Author

madsmtm commented Feb 3, 2025

I wouldn't want it for all Tier 3 targets either, just for newer ones that are still "in the works", and older ones that are mostly legacy and ill-supported.

@Lokathor
Copy link

Lokathor commented Feb 3, 2025

the armv4t targets are quite possibly what you'd call "legacy", but I still don't want them marked unstable.

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

No branches or pull requests

2 participants