RepositoryRustUSUnited States
DR

dropbox/rust-brotli

Brotli compressor and decompressor written in rust that optionally avoids the stdlib

946stars
110forks
28issues
2views

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: brotli-compression

#1 Repository Của Tuần

1
TINIX TRENDING·Chủ đề: safe

#1 Repository Của Tuần

1
TINIX TRENDING·Chủ đề: brotli-decompressor

#1 Repository Của Tuần

📦 rust-brotli: Thuộc Brotli nén/giải nén chuẩn Rust, không cần stdlib

Port không stdlib của bộ nén/giải nén Brotli C sang Rust — tương thích bitwise với brotli gốc ở cấp độ 0–9.

rust-brotli do dropbox phát triển, là implementation của thuật toán Brotli compression/decompression bằng Rust. Điểm khác biệt lớn nhất là library này có thể được xây dựng không phụ thuộc vào Rust stdlib, mở ra khả năng sử dụng trong môi trường như kernel, firmware hoặc các ứng dụngembedded giới hạn bộ nhớ.

✨ Điểm nổi bật

  • Hỗ trợ không stdlib: Có thể hoạt động mà không cần Rust standard library, phù hợp cho kernel hoặc môi trường giới hạn bộ nhớ.
  • Tương thích bitwise với brotli C: Kết quả nén ở cấp độ 0–9 là hoàn toàn giống bit-by-bit với engine brotli của Google.
  • Cấp độ nén linh hoạt: Hỗ trợ cấp độ 0–11, với lg_window_size từ 20–22.
  • FFI tương thích cao: Cung cấp FFI tương thích drop-in với binary brotli của Google, hỗ trợ custom allocator.
  • Nén đa luồng: Cho phép nhiều thread cùng thao tác trên một file để tăng tốc độ nén.
  • Chế độ nối stream (concatenatability): Hỗ trợ nối nhiều luồng brotli lại với nhau, tương thích với công cụ catbrotli.
  • Chế độ xác thực (validation): Kiểm tra file có thể giải nén được với cùng cài đặt — phù hợp cho benchmarking và fuzzing.
  • Magic Number header: File brotli có thể mang header chứa magic bytes, thông tin concat và kích thước output để pre-allocate bộ nhớ.

💡 Vì sao值得关注

rust-brotli không chỉ đơn thuần là một wrapper quanh library C — nó là một port trực tiếp, giữ nguyên cấu trúc và tối ưu của brotli gốc, nhưng được viết lại hoàn toàn bằng Rust với đảm bảo an toàn (memory safety). Khả năng hoạt động không stdlib là điểm nhấn lớn, cho thấy Rust có thể cạnh tranh với C ngay cả ở các lớp hệ thống thấp. Phù hợp cho những ai cần brotli nhưng muốn giữ lại an toàn của Rust, hoặc cần tích hợp brotli vào các dự án không dùng được std.

#Brotli #Compression #Rust #NoStdlib #TiniX

Similar Projects

Discover other similar projects and AI models.

RepositoryJava
hyperxpro/Brotli4j

Brotli4j provides Brotli compression and decompression for Java.

155
Oct 1, 2026
RepositoryGo
dunglas/caddy-cbrotli

A Caddy module providing support for the Brotli compression format.

61
May 27, 2025
Modelsentence-similarity
sentence-transformers/all-MiniLM-L6-v2

all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...

♥0
190.1M
Jun 1, 2026
RepositoryRust
ouch-org/ouch

Painless compression and decompression in the terminal

3.8k
Oct 19, 2026
RepositoryRust
milesgranger/cramjam

Your go-to for easy access to a plethora of compression algorithms, all neatly bundled in one simple installation.

128
Oct 13, 2026
RepositoryPascal
peazip/PeaZip

Free Zip / Unzip software and Rar file extractor. Cross-platform file and archive manager. Features volume spanning, compression, authenticated encryption. Supports 7Z, 7-Zip sfx, ACE, ARJ, Brotli, BZ2, CAB, CHM, CPIO, DEB, GZ, ISO, JAR, LHA/LZH, NSIS, OOo, PAQ/LPAQ, PEA, QUAD, RAR, RPM, split, TAR, Z, ZIP, ZIPX, Zstandard.

8.0k
Oct 21, 2026
RepositoryGo
klauspost/compress

Optimized Go Compression Packages

5.7k
Oct 26, 2026
RepositoryC++
dropbox/lepton

Lepton is a tool and file format for losslessly compressing JPEGs by an average of 22%.

5.0k
Mar 4, 2024
RepositoryJava
mizosoft/methanol

⚗️ Lightweight HTTP extensions for Java & Kotlin

299
Oct 5, 2026