Skip to content

Main content

Cargo Profile Inheritance Key Tool

Classify supplied Cargo profile names; this does not resolve a manifest inheritance graph.

Loading tool…

Description

Classify a Cargo profile and supplied inheritance parent.

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.

Classify a Cargo profile and supplied inheritance parent.

When to use this tool

Use Cargo Profile Inheritance Key when checking the stated package, Cargo or container-reference component.

How to use the tool and how it works

  1. Enter profile, inherits. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read customProfile, inheritanceRequired, builtInParent. Inspect customProfile, inheritanceRequired, builtInParent before interpreting the associated values.

Classify a Cargo profile and supplied inheritance parent. Require nonempty profile/inherits; profiles outside dev/release/test/bench are custom and require inheritance; builtInParent recognizes only dev or release.1

Input fieldMeaning and unitsAccepted input
profileProfileRequired. Text; maximum UTF-16 length 8192.
inheritsInheritsRequired. Text; maximum UTF-16 length 8192.
Output fieldInterpretationReturned shape
customProfileCustom ProfileRequired. Boolean.
inheritanceRequiredInheritance RequiredRequired. Boolean.
builtInParentBuilt In ParentRequired. Boolean.
json
{
  "input": {
    "profile": "production",
    "inherits": "release"
  },
  "output": {
    "customProfile": true,
    "inheritanceRequired": true,
    "builtInParent": true
  }
}

Limitations and assumptions

  • This does not validate the full profile table, inheritance cycles or actual Cargo behavior.
  • 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

  1. Calculation and input contract: development/cargo-profile-inheritance-key — tool.io

Similar or alternative tools