From 6449c81424147e363d3adcf0e5fffc29e706057b Mon Sep 17 00:00:00 2001 From: Prabhu Subramanian Date: Sat, 23 Aug 2025 22:38:46 +0100 Subject: [PATCH] Fixes for cargo Signed-off-by: Prabhu Subramanian --- types/cargo-definition.json | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/types/cargo-definition.json b/types/cargo-definition.json index a862b1fa..b90e4c77 100644 --- a/types/cargo-definition.json +++ b/types/cargo-definition.json @@ -10,20 +10,29 @@ }, "namespace_definition": { "requirement": "prohibited", - "note": "there is no namespace" + "note": "There is no namespace for Cargo packages." }, "name_definition": { + "requirement": "required", "native_name": "name", - "is_case_sensitve": true, - "note": "The name is the repository name." + "case_sensitive": true, + "note": "The name is the package name. It is case-sensitive." }, "version_definition": { + "requirement": "required", "native_name": "version", - "note": "The version is the package version." + "note": "The version is the package version. It should follow the Semantic Versioning (SemVer) specification." }, + "qualifiers_definition": [ + { + "key": "repository_url", + "requirement": "optional", + "description": "The repository URL of the registry where the package is located, if not the default crates.io." + } + ], "examples": [ "pkg:cargo/rand@0.7.2", "pkg:cargo/clap@2.33.0", "pkg:cargo/structopt@0.3.11" ] -} +} \ No newline at end of file