Mount ZIP/JAR archives as read-only FUSE filesystems (macOS and Linux).
curl -fsSL https://raw.githubusercontent.com/mauhiz/rustymount/main/install.sh | shOr with a specific version / install directory:
TAG=v0.1.0 INSTALL_DIR=~/.local/bin sh <(curl -fsSL https://raw.githubusercontent.com/mauhiz/rustymount/main/install.sh)Prerequisites
- macOS:
brew install --cask macfuse - Linux:
sudo apt-get install libfuse3-dev(or the equivalent for your distro)
cargo build --releasemkdir /tmp/mnt
rustymount some.jar /tmp/mnt
# browse contents, then:
umount /tmp/mnt- Inode tree is built at startup from the ZIP central directory — flat paths like
com/example/Foo.classproduce virtual intermediate directory inodes. - Decompression is lazy + cached per inode: deflate entries can't be random-accessed, so the first
readdecompresses the whole entry into memory; subsequent reads slice from the cache. - Read-only,
AutoUnmounton process exit.