Skip to content

Consider flag to mark unstable targets #92

@madsmtm

Description

@madsmtm

(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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions