aboutsummaryrefslogtreecommitdiff
path: root/mling/src/res
diff options
context:
space:
mode:
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::*;