diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-06-07 15:18:24 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-06-07 15:18:24 +0800 |
| commit | 8aa276beb88086b866be8a446289106be237348a (patch) | |
| tree | e9081d7b417fee79e59d55bde75ef5de71646121 /mling/src/res/manifest_path.rs | |
| parent | 81b348ade98ec12516d0e43e2dc930e1cb3a27a5 (diff) | |
Add hformat_cargo, hprintln_cargo macros and help rendering
Diffstat (limited to 'mling/src/res/manifest_path.rs')
| -rw-r--r-- | mling/src/res/manifest_path.rs | 13 |
1 files changed, 13 insertions, 0 deletions
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<String>, + pub resolved: Option<PathBuf>, +} + +impl ResManifestPath { + pub fn resolved(&self) -> &PathBuf { + self.resolved.as_ref().unwrap() + } +} |
