-
Notifications
You must be signed in to change notification settings - Fork 8
Target specification? #6
Copy link
Copy link
Closed as duplicate of#151528
Labels
RFCDiscussion for a possible new RFCDiscussion for a possible new RFCS-needs-designStatus: needs design workStatus: needs design workstabilization blockerThis needs a resolution before stabilizationThis needs a resolution before stabilization
Metadata
Metadata
Assignees
Labels
RFCDiscussion for a possible new RFCDiscussion for a possible new RFCS-needs-designStatus: needs design workStatus: needs design workstabilization blockerThis needs a resolution before stabilizationThis needs a resolution before stabilization
Type
Fields
Give feedbackNo fields configured for issues without a type.
This issue is for tracking any possible work needed for custom target specifications.
The current target JSON specification was introduced in RFC 131, implemented in 16156, updated in 49019. Although it can be used on stable
rustc, in practice you likely need nightly-only features to use it.It is unlikely that Cargo will need to add any special handling for the format (except if the extension changes). Cargo already supports JSON target files. However, when std-aware Cargo becomes stable, this suddenly offers an opportunity for the target specification to be more usable on stable. The teams will need to decide if they are comfortable with proceeding with the current format, or if stabilizing std-aware cargo should be gated on changing it.
There have been a few issues brought up with the current format:
Please leave any comments about ideas, possible changes, whether or not this should gate anything, or if the current ("stable") syntax is sufficient.