declare_tool_version

Function declare_tool_version 

Source
pub fn declare_tool_version(tool_name: &str, version: &str) -> Result<()>
Expand description

Tool self-declares its exact semver (validated against manifest)

Registers a tool’s version in the registry for dependency resolution. The version is validated to ensure it matches semver format.

§Arguments

  • tool_name - Name of the tool
  • version - Semantic version string (e.g., “1.2.3”)