Skip to content

Commit 73fd8db

Browse files
ya7010yassun7010
andauthored
Update: inherits options. (SchemaStore#4691)
Co-authored-by: yassun7010 <[email protected]>
1 parent 0bd0c4d commit 73fd8db

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

src/schemas/json/cargo.json

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,17 @@
261261
}
262262
}
263263
},
264+
"Inherits": {
265+
"title": "Inherits",
266+
"description": "In addition to the built-in profiles, additional custom profiles can be defined.",
267+
"type": "string",
268+
"enum": ["dev", "test", "bench", "release"],
269+
"x-taplo": {
270+
"links": {
271+
"key": "https://doc.rust-lang.org/cargo/reference/profiles.html#custom-profiles"
272+
}
273+
}
274+
},
264275
"Lint": {
265276
"title": "Lint",
266277
"anyOf": [
@@ -993,6 +1004,9 @@
9931004
"title": "Profile",
9941005
"type": "object",
9951006
"properties": {
1007+
"inherits": {
1008+
"$ref": "#/definitions/Inherits"
1009+
},
9961010
"opt-level": {
9971011
"$ref": "#/definitions/OptLevel"
9981012
},
@@ -1034,12 +1048,6 @@
10341048
"x-taplo": {
10351049
"hidden": true
10361050
}
1037-
},
1038-
"inherits": {
1039-
"type": "string",
1040-
"x-taplo": {
1041-
"hidden": true
1042-
}
10431051
}
10441052
},
10451053
"x-tombi-table-keys-order": "schema"

0 commit comments

Comments
 (0)