v0.2.0 · Apache-2.0 · Pure Rust · 11 Crates

juicefs-rs

A pure-Rust port of the JuiceFS distributed POSIX filesystem architecture — zero Go runtime, zero C/libfuse build dependencies, native macOS & Linux support.

93
Passing Tests (0 Failed)
82.96%
Line Coverage (llvm-cov)
988.9 MiB/s
moka-Cached VFS Read
1.8×–2.2×
Faster format / status / fsck / sync vs Go

Benchmarks (Apple Silicon, --release vs Go JuiceFS 1.4.2)

Operationjuicefs-rsjuicefs-goComparison
format (sqlite3 + file + lz4)0.038 s0.085 s2.2× faster
status0.036 s0.075 s2.1× faster
fsck0.036 s0.078 s2.2× faster
sync (100 × 128 KiB, 8 threads)0.046 s0.081 s1.8× faster
vfs put 16 MiB0.070 s (~229 MiB/s)—End-to-end CLI upload
vfs get 16 MiB0.052 s (~308 MiB/s)—End-to-end CLI download

Criterion Microbenchmarks

BenchmarkMean TimeThroughput
compression_1mb/compress/lz458.96 µs16.57 GiB/s
compression_1mb/decompress/lz430.23 µs32.31 GiB/s
compression_1mb/compress/zstd107.75 µs9.06 GiB/s
compression_1mb/decompress/zstd35.40 µs27.59 GiB/s
vfs_io/read_64k_file_cached (moka)63.20 µs988.90 MiB/s
build_slice_100_overlapping7.76 µs—

Workspace Crates

juicefs-core

POSIX domain types, 24-byte big-endian slice wire format, interval tree resolution, LZ4/Zstd compression.

juicefs-object

Memory, File, S3/OSS/COS/MinIO/B2, GCS, Azure, Prefixed, AES-256-GCM & 64 KiB chunked AEAD encryption, FNV-1a sharding, multipart, restore.

juicefs-chunk

moka concurrent cache, DiskBlockCache (2-Random/LRU), SingleFlight deduplication, Prefetcher, TokenBucket rate limits, async WritebackQueue.

juicefs-meta

SqliteMeta (WAL) & feature-gated RedisMeta: POSIX tree, flock/plock, dir & user/group quotas, .trash, dirStats, changelog, sessions, clone, dump/load, fsck.

juicefs-vfs

Multi-chunk I/O, sparse holes, POSIX access/ACLs, .stats/.config virtual files, compact_file, symlink loop guard, summary, warmup, tier.

juicefs-fuse

Pure-Rust POSIX FUSE adapter, file-handle table, MountConfig, and cross-platform unmount helper.

juicefs-sync

Concurrent Semaphore-bounded object sync engine with update, delete-dst, prefix, and dry-run modes.

juicefs-gateway

S3-compatible HTTP gateway over Vfs (ListObjectsV2 XML, GET/Range, HEAD, PUT, DELETE).

juicefs-webdav

WebDAV HTTP server over Vfs (OPTIONS, PROPFIND, GET/Range, HEAD, PUT, MKCOL, DELETE, MOVE, COPY, /metrics).

juicefs-metric

Lock-free atomic counters and Prometheus/OpenMetrics text exposition.

juicefs-cli

Full juicefs binary wiring 30+ subcommands for admin, I/O, sync, gateway, webdav, and benchmarks.

Quickstart

cargo build --release -p juicefs-cli
./target/release/juicefs format sqlite3:///tmp/jfs.db myvol --storage file --bucket /tmp/jfs-data --compress zstd
./target/release/juicefs mkdir -p sqlite3:///tmp/jfs.db /docs
./target/release/juicefs put sqlite3:///tmp/jfs.db ./Cargo.toml /docs/Cargo.toml
./target/release/juicefs cat sqlite3:///tmp/jfs.db /docs/Cargo.toml