Adds the shared package repository prefix to a package name.
(name: &str)
| 35 | |
| 36 | /// Adds the shared package repository prefix to a package name. |
| 37 | fn remote_pkg(name: &str) -> String { |
| 38 | let prefix = match name { |
| 39 | "types" => "witTypes", |
| 40 | "async" => "witAsync", |
| 41 | "runtime" => "witRuntime", |
| 42 | _ => unimplemented!(), |
| 43 | }; |
| 44 | format!(r#"{prefix} "go.bytecodealliance.org/pkg/wit/{name}""#) |
| 45 | } |
| 46 | |
| 47 | /// The version of github.com/bytecodealliance/go-pkg that's being used |
| 48 | const REMOTE_PKG_VERSION: &str = "v0.2.1"; |
no outgoing calls
no test coverage detected