Write the manifest back as pretty JSON with a trailing newline.
(&self, path: &Path)
| 30 | |
| 31 | /// Write the manifest back as pretty JSON with a trailing newline. |
| 32 | fn save(&self, path: &Path) -> Result<()> { |
| 33 | let text = serde_json::to_string_pretty(self)?; |
| 34 | std::fs::write(path, format!("{text}\n")).with_context(|| format!("writing {}", path.display())) |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | /* Official package registry. Mirrors the runtime's built-in default manifest. */ |
no outgoing calls
no test coverage detected