MCPcopy Create free account
hub / github.com/ZettaScaleLabs/hiroz / parse_msg_file

Function parse_msg_file

crates/hiroz-codegen/src/parser/msg.rs:7–11  ·  view source on GitHub ↗

Parse a .msg file from a path

(path: &Path, package: &str)

Source from the content-addressed store, hash-verified

5
6/// Parse a .msg file from a path
7pub fn parse_msg_file(path: &Path, package: &str) -> Result<ParsedMessage> {
8 let source = std::fs::read_to_string(path)
9 .with_context(|| format!("Failed to read {}", path.display()))?;
10 parse_msg_string(&source, package, path)
11}
12
13/// Parse a .msg file from a string
14pub fn parse_msg_string(source: &str, package: &str, path: &Path) -> Result<ParsedMessage> {

Callers 1

discover_messagesFunction · 0.85

Calls 1

parse_msg_stringFunction · 0.85

Tested by

no test coverage detected