Skip to content

Commit

Permalink
fixup! feat(manifest)!: implement feature-metadata RFC3416
Browse files Browse the repository at this point in the history
  • Loading branch information
AudaciousAxiom committed Jan 12, 2025
1 parent af99add commit 790a0e8
Showing 1 changed file with 30 additions and 4 deletions.
34 changes: 30 additions & 4 deletions crates/cargo-util-schemas/manifest.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,7 @@
"null"
],
"additionalProperties": {
"type": "array",
"items": {
"type": "string"
}
"$ref": "#/$defs/FeatureDefinition"
}
},
"lib": {
Expand Down Expand Up @@ -597,6 +594,35 @@
]
},
"TomlValue": true,
"FeatureDefinition": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"$ref": "#/$defs/FeatureMetadata"
}
]
},
"FeatureMetadata": {
"description": "Metadata about a feature.",
"type": "object",
"properties": {
"enables": {
"description": "Features that this feature enables.",
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"enables"
]
},
"TomlTarget": {
"type": "object",
"properties": {
Expand Down

0 comments on commit 790a0e8

Please sign in to comment.