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

Function parse_spec

cli/src/pkg.rs:133–138  ·  view source on GitHub ↗

Parse `name` or `name=url`.

(spec: &str)

Source from the content-addressed store, hash-verified

131
132/// Parse `name` or `name=url`.
133fn parse_spec(spec: &str) -> (&str, Option<String>) {
134 if let Some((name, url)) = spec.split_once('=') {
135 return (name, Some(url.to_string()));
136 }
137 (spec, None)
138}
139
140/// A `.wasm` url is a worker-side std package; anything else is a host library.
141fn kind_from_url(url: &str) -> Kind {

Callers 2

addFunction · 0.70
removeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected