From 8aa276beb88086b866be8a446289106be237348a Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Sun, 7 Jun 2026 15:18:24 +0800 Subject: Add hformat_cargo, hprintln_cargo macros and help rendering --- mling/src/res/manifest_path.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 mling/src/res/manifest_path.rs (limited to 'mling/src/res/manifest_path.rs') diff --git a/mling/src/res/manifest_path.rs b/mling/src/res/manifest_path.rs new file mode 100644 index 0000000..7f1686e --- /dev/null +++ b/mling/src/res/manifest_path.rs @@ -0,0 +1,13 @@ +use std::path::PathBuf; + +#[derive(Default, Clone)] +pub struct ResManifestPath { + pub raw: Option, + pub resolved: Option, +} + +impl ResManifestPath { + pub fn resolved(&self) -> &PathBuf { + self.resolved.as_ref().unwrap() + } +} -- cgit