aboutsummaryrefslogtreecommitdiff
path: root/mling/src/res
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-06-07 15:18:24 +0800
committer魏曹先生 <1992414357@qq.com>2026-06-07 15:18:24 +0800
commit8aa276beb88086b866be8a446289106be237348a (patch)
treee9081d7b417fee79e59d55bde75ef5de71646121 /mling/src/res
parent81b348ade98ec12516d0e43e2dc930e1cb3a27a5 (diff)
Add hformat_cargo, hprintln_cargo macros and help rendering
Diffstat (limited to 'mling/src/res')
-rw-r--r--mling/src/res/manifest_path.rs13
-rw-r--r--mling/src/res/mod.rs3
2 files changed, 16 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()
+ }
+}
diff --git a/mling/src/res/mod.rs b/mling/src/res/mod.rs
index b6ea60d..caa843c 100644
--- a/mling/src/res/mod.rs
+++ b/mling/src/res/mod.rs
@@ -1,2 +1,5 @@
mod current_dir;
pub use current_dir::*;
+
+mod manifest_path;
+pub use manifest_path::*;