MCPcopy Create free account
hub / github.com/SeaQL/FireDBG.for.Rust / workspace_firedbg_version

Function workspace_firedbg_version

command/src/main.rs:571–581  ·  view source on GitHub ↗
(workspace: &Workspace)

Source from the content-addressed store, hash-verified

569}
570
571fn workspace_firedbg_version(workspace: &Workspace) -> Result<Option<cfg::Version>> {
572 let version_path = &workspace.get_version_path();
573 let version_path = Path::new(version_path);
574 let version = if version_path.exists() && version_path.is_file() {
575 let file_content = fs::read_to_string(&version_path).context("Fail to read")?;
576 Some(toml::from_str(&file_content).context("Fail to parse TOML")?)
577 } else {
578 None
579 };
580 Ok(version)
581}
582
583async fn pin_firedbg_version(workspace: &Workspace) -> Result<()> {
584 let version = &current_firedbg_version();

Callers 1

Calls 1

get_version_pathMethod · 0.80

Tested by

no test coverage detected