Skip to main content

resolve_effective_version

Function resolve_effective_version 

Source
pub fn resolve_effective_version(
    start_dir: &Path,
    explicit: Option<&str>,
    config: Option<&EuvProjectConfig>,
) -> String
Expand description

Resolves the effective application semantic version using precedence: CLI flag -> euv.toml -> workspace Cargo.toml -> CLI crate version.

§Arguments

  • &Path - Working directory to probe for Cargo.toml.
  • Option<&str> - Optional explicit --version CLI override.
  • Option<&EuvProjectConfig> - Optional loaded euv.toml configuration.

§Returns

  • String - Effective semantic version string.