INNER CODE UNIT · Rust
default
vmware-labs/wasm-workers-server · crates/config/src/lib.rs:147
fn default() -> Self {
let new_repo = ConfigRepository {
name: DEFAULT_REPO_NAME.to_string(),
url: DEFAULT_REPO_URL.to_string(),
runtimes: Vec::new(),
};
Self {
version: 1,
repositories: vec![new_repo],
}
}
}
#[derive(Deserialize, Serialize)]
pub struct ConfigRepository {
/// Local name to identify the repository. It avoids collisions when installing
/// language runtimes