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

Function kind_from_url

cli/src/pkg.rs:141–147  ·  view source on GitHub ↗

A `.wasm` url is a worker-side std package; anything else is a host library.

(url: &str)

Source from the content-addressed store, hash-verified

139
140/// A `.wasm` url is a worker-side std package; anything else is a host library.
141fn kind_from_url(url: &str) -> Kind {
142 if url.ends_with(".wasm") {
143 Kind::Std
144 } else {
145 Kind::Host
146 }
147}

Callers 1

addFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected