Module version

Module version 

Source
Expand description

Version Governance & Package Identity APIs

Functions§

activate_package_variant
Hot-switches variant with full safety + branching preview
current_forge_version
Returns forge’s own Version struct
declare_tool_version
Tool self-declares its exact semver (validated against manifest)
enforce_exact_version
Runtime panic on version mismatch — zero tolerance policy
query_active_package_variant
Returns current variant ID (e.g. “shadcn-pro”, “minimal-dark”)
require_forge_minimum
build.rs macro — compilation fails if forge is too old