BROTLI-RS(1)
π NAME π
okay so bestie, meet brotli-rs β a brotli compressor and decompressor. that's the whole gig. compressing, decompressing, iconic behavior only. π
β¨ SYNOPSIS β¨
brotli-rs [FLAGS]
π¦ DESCRIPTION π¦
so like. it's a brotli compressor and decompressor whose interface avoids the rust stdlib entirely. which is not a flex, it's a lifestyle β that's literally what makes it work on embedded devices and kernels. no cap. π«Ά
it's designed with a pluggable allocator, so if you do want the standard lib's allocator, you can absolutely just plug it in like it's a new phone case. and all the included code is safe. all of it. every last bit. π
π FLAGS π
-catable,--catableβ turns on concatable mode, so the data it makes can be added onto a block generated with--apendable. it's giving "yes and". β¨-nothreadpool,--nothreadpoolβ shuts the work thread pool all the way off. bye bestie π-appendable,--appendableβ turns on appendable mode, so the datastream can be extended with more data from--catablemode. they're a duo fr fr.-magic,--magicβ slaps a magic number in as the very first bytes so a brotli compressed stream can be spotted easily. it's giving name tag at a party πͺͺβ¨-customdictionary=[FILE]β reads a custom dictionary in from a file. [FILE] is your file. obviously.--dump-dictionaryβ prints out the dictionary that's being used. show and tell π-utf8β forces the utf8 context mode in the compression. periodt.-msbβ forces the msb context mode in the compression.-lsbβ forces the lsb context mode in the compression.-signedβ forces the signed context mode in the compression.-efficientβ favors cpu efficiency over low latency. girlboss choices π-lowlatencyβ favors cpu low latency over efficiency. the opposite girlboss choice.-iβ displays the intermediate representation of metablocks. peek behind the curtain bestie π-0,-q0β sets quality = 0-1,-q1β sets quality = 1-2,-q2β sets quality = 2-3,-q3β sets quality = 3-4,-q4β sets quality = 4-5,-q5β sets quality = 5-6,-q6β sets quality = 6-7,-q7β sets quality = 7-8,-q8β sets quality = 8-9,-q9β sets quality = 9-10,-q10β sets quality = 10-11,-q11β sets quality = 11-9.5,-q9.5β sets quality = 10 π (yes, the 9.5 one is quality 10. no, we don't make the rules. this is literally what it says.)-9.5x,-q9.5xβ sets quality = 11-q9.5yβ sets quality = 12 π₯ (this one has no non-qtwin, she's solo)-l[NUMBER]β sets the input block size-j[NUMBER]β sets the maximum size of the threadpool-bytescore=[NUMBER]β sets theliteral_byte_scorevalue of the hasher. default is0.-w[NUMBER]β sets thelgwinvalue. default is22.-validate,--validateβ enables validation. trust but verify bestie π-bs[NUMBER]β sets the buffer size-findpriorβ enables prior bitmask detection-findspeed=[NUMBER]β sets cdf adaptation detection to [NUMBER]-basicstrideβ sets stride-strideβ sets stride-advstrideβ sets stride-speed=[NUMBER]β sets speed-avoiddistanceprefixsearchβ avoids distance prefix search. dodging it gracefully π-b[NUMBER]β does benchmark-cβ enables compression mode-h,--helpβ prints the help text. when in doubt, ask the program itself π«Ά
π EXIT STATUS π
0β successful program execution. we ate and left no crumbs β¨1β unsuccessful program execution. it's giving flop π101β the program panicked. full meltdown, no thoughts, head empty π
π EXAMPLES π
compresses the content of /tmp/input and writes it to /tmp/output:
$ brotli-rs -c /tmp/input /tmp/output
look at her go. main character energy fr fr π¦
π§ AUTHOR π§
Daniel Reiter Horn <danielrh@dropbox.com> β thank you for your service, king π
and that's the whole page bestie!! this one lives in the General Commands Manual as BROTLI-RS(1), and ngl there's no date stamped on it, so that's the entire lore. go compress something. slay πβ¨π
π¦ where this page comes from
- debian trixie: brotli-rs 6.0.0-1+b6 Β· BSD-3-Clause OR MIT
- ubuntu noble: brotli-rs 3.4.0-1 Β· BSD-3-Clause OR MIT
- ubuntu questing: brotli-rs 6.0.0-1build1
- ubuntu resolute: brotli-rs 8.0.2-2 Β· BSD-3-Clause AND MIT
- ubuntu stonking: brotli-rs 8.0.4-1 Β· BSD-3-Clause AND MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms