Description
Compare local and package names in a Cargo rename record.
Package and container references combine names, selectors, conditions and platform metadata. A restricted lexical split can preserve these parts without validating registry identity, available targets, dependency graphs or runtime resolution.
Compare local and package names in a Cargo rename record.
When to use this tool
Use Cargo Dependency Rename Package Pair when checking the stated package, Cargo or container-reference component.
How to use the tool and how it works
- Enter localName, packageName. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read renamed, cargoFeaturePrefix. Inspect renamed before interpreting the associated values.
Compare local and package names in a Cargo rename record. Require nonempty ASCII alphanumeric/underscore/hyphen names; renamed checks exact inequality and cargoFeaturePrefix is dep: plus localName.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| localName | Local Name | Required. Text; maximum UTF-16 length 8192. |
| packageName | Package Name | Required. Text; maximum UTF-16 length 8192. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| renamed | Renamed | Required. Boolean. |
| cargoFeaturePrefix | Cargo Feature Prefix | Required. Text; maximum UTF-16 length 8192. |
{
"input": {
"localName": "serde1",
"packageName": "serde"
},
"output": {
"renamed": true,
"cargoFeaturePrefix": "dep:serde1"
}
} Limitations and assumptions
- No manifest is read, package resolved or Cargo naming restriction beyond this grammar enforced.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
Alternative or Complementary methods
Use the relevant package manager, runtime or registry against the actual project for complete resolution and validation.
References
Similar or alternative tools
- Cargo Feature Dependency Prefix Token
Parse one restricted Cargo dependency-feature token.
- Cargo Profile Inheritance Key
Classify a Cargo profile and supplied inheritance parent.