MCPcopy Index your code
hub / github.com/explodingcamera/tinywasm / parse_file

Function parse_file

crates/parser/src/lib.rs:330–333  ·  view source on GitHub ↗

Parse a module from a file. Requires the `std` feature.

(path: impl AsRef<crate::std::path::Path> + Clone)

Source from the content-addressed store, hash-verified

328#[cfg(feature = "std")]
329/// Parse a module from a file. Requires the `std` feature.
330pub fn parse_file(path: impl AsRef<crate::std::path::Path> + Clone) -> Result<Module> {
331 let data = Parser::new().parse_module_file(path)?;
332 Ok(data)
333}
334
335#[cfg(feature = "std")]
336/// Parse a module from a stream. Requires `parser` and `std` features.

Callers 8

tinywasmFunction · 0.85
tinywasm_no_stdFunction · 0.85
helloFunction · 0.85
host_fnFunction · 0.85
printi32Function · 0.85
fibonacciFunction · 0.85
argon2idFunction · 0.85
newMethod · 0.85

Calls 1

parse_module_fileMethod · 0.80

Tested by

no test coverage detected