Skip to content

Commit a4cfe22

Browse files
committed
Add archive reading interface
1 parent a63036a commit a4cfe22

9 files changed

Lines changed: 841 additions & 3 deletions

File tree

Cargo.lock

Lines changed: 137 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/src/file_tree/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ pub fn find_node_by_path<'tree, F>(tree: &'tree FileTree<F>, path: &Utf8Path) ->
507507

508508
/// Returns the path from the root to the specified node.
509509
#[must_use]
510-
fn node_path<F>(node: &TreeNodeRef<F>) -> Utf8PathBuf {
510+
pub fn node_path<F>(node: &TreeNodeRef<F>) -> Utf8PathBuf {
511511
let ancestors: Vec<_> = node.ancestors().collect();
512512
ancestors
513513
.iter()

edit/Cargo.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,23 @@ edition = "2024"
55
license = "GPL-3.0-or-later"
66

77
[dependencies]
8+
anyhow = { workspace = true }
9+
camino = { workspace = true }
810
cbor4ii = { workspace = true }
911
compact_str = { workspace = true }
1012
foldhash = { workspace = true }
1113
git2 = "0.20"
1214
icu_collator = "2.2"
1315
mmm-core = { path = "../core" }
16+
nary_tree = { workspace = true }
1417
thiserror = { workspace = true }
1518
tracing = { workspace = true }
1619
typed-index-collections = { workspace = true }
20+
sevenz-rust2 = { version = "0.20", default-features = false }
21+
tar = { version = "0.4", default-features = false }
1722
unicode-segmentation = "1.13"
23+
unrar = "0.5"
24+
zip = { version = "8.5", "default-features" = false, features = ["deflate-flate2-zlib-rs"] }
1825

1926
[lints]
2027
workspace = true

0 commit comments

Comments
 (0)