-
Notifications
You must be signed in to change notification settings - Fork 2.9k
json-target-spec incorrectly documented as target-spec-json #16896
Copy link
Copy link
Closed
Labels
A-documenting-cargo-itselfArea: Cargo's documentationArea: Cargo's documentationA-target-specArea: target JSON spec filesArea: target JSON spec filesC-bugCategory: bugCategory: bugE-easyExperience: EasyExperience: EasyS-acceptedStatus: Issue or feature is accepted, and has a team member available to help mentor or reviewStatus: Issue or feature is accepted, and has a team member available to help mentor or review
Metadata
Metadata
Assignees
Labels
A-documenting-cargo-itselfArea: Cargo's documentationArea: Cargo's documentationA-target-specArea: target JSON spec filesArea: target JSON spec filesC-bugCategory: bugCategory: bugE-easyExperience: EasyExperience: EasyS-acceptedStatus: Issue or feature is accepted, and has a team member available to help mentor or reviewStatus: Issue or feature is accepted, and has a team member available to help mentor or review
Type
Fields
Give feedbackNo fields configured for issues without a type.
Recently, custom target specs were gated behind a
-Z json-target-specflag. Trying to build with a custom target spec now prints:There is nothing in the unstable section of the Cargo book that suggests the existence of
json-target-spec, which makes it seem like this is a command line flag that exists outside of Cargo's normal unstable feature system (and therefore cannot be configured through.cargo/config.toml). However, the feature is actually documented under the nametarget-spec-json.-Ztarget-spec-json(or[unstable] target-spec-json = truein.cargo/config.toml) does not work, so this appears to be a typo in the documentation.Cargo version: