MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / std_url

Function std_url

cli/src/pkg.rs:59–62  ·  view source on GitHub ↗

CDN url for a std package. Most ship as `.wasm`; `test` is pure Edge Python, served as `.py`. Mirrors runtime/src/defaults.js.

(name: &str)

Source from the content-addressed store, hash-verified

57
58/// CDN url for a std package. Most ship as `.wasm`; `test` is pure Edge Python, served as `.py`. Mirrors runtime/src/defaults.js.
59fn std_url(name: &str) -> String {
60 let ext = if name == "test" { "py" } else { "wasm" };
61 format!("https://cdn.edgepython.com/std/{name}.{ext}")
62}
63
64/// Resolve `name` for the runtime: user manifest entry first, registry fallback.
65pub fn resolve(name: &str, manifest: &Manifest) -> Option<(Kind, String)> {

Callers 1

registryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected