MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / sanitize_version

Function sanitize_version

mserver/MasterService/src/mods.rs:553–562  ·  view source on GitHub ↗
(value: &str)

Source from the content-addressed store, hash-verified

551 .await
552 .with_context(|| format!("writing revision 1 metadata for {slug}"))?;
553 self.create_current(&slug, 1).await?;
554 Ok(entry)
555 }
556
557 pub async fn add_revision(
558 &self,
559 mod_id: &str,
560 bytes: Vec<u8>,
561 meta: ModUploadMeta,
562 ) -> Result<ModCatalogEntry> {
563 let mut upload = self.begin_upload().await?;
564 upload.write(&bytes);
565 self.finalize_revision(upload, mod_id, meta).await

Callers 2

publish_modMethod · 0.85
finalize_modMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected