Parse a module from a file. Requires the `std` feature.
(path: impl AsRef<crate::std::path::Path> + Clone)
| 328 | #[cfg(feature = "std")] |
| 329 | /// Parse a module from a file. Requires the `std` feature. |
| 330 | pub 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. |
no test coverage detected