MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / platform_asset_name

Function platform_asset_name

src/cloud.rs:140–144  ·  view source on GitHub ↗
(prefix: &str, version: &str)

Source from the content-addressed store, hash-verified

138}
139
140fn platform_asset_name(prefix: &str, version: &str) -> String {
141 let platform = current_platform();
142 let ext = if cfg!(windows) { "zip" } else { "tar.gz" };
143 format!("{prefix}-v{version}-{platform}.{ext}")
144}
145
146/// Candidate asset names for explicit release installs.
147pub(crate) fn asset_name_candidates(version: &str, is_beta: bool) -> [String; 1] {

Callers 1

asset_nameFunction · 0.85

Calls 1

current_platformFunction · 0.85

Tested by

no test coverage detected