@@ -57,7 +57,7 @@ Archive sizes are identical between the two -- same DEFLATE algorithm, same comp
5757
5858### Run benchmarks yourself
5959
60- ```
60+ ``` sh
6161cargo bench -p ripzip
6262```
6363
@@ -70,7 +70,7 @@ Add to your `Cargo.toml`:
7070ripzip = { path = " ripzip" }
7171```
7272
73- ``` rust
73+ ``` rust,no_run
7474use std::path::Path;
7575use ripzip::{NoProgress, compress_directory, extract_to_directory};
7676
@@ -91,6 +91,7 @@ extract_to_directory(
9191 Path::new("output/"),
9292 &NoProgress,
9393)?;
94+ # Ok::<(), ripzip::RipzipError>(())
9495```
9596
9697### Progress Reporting
@@ -122,19 +123,19 @@ Progress callbacks fire at chunk granularity (256 KB), so even single large file
122123
123124## CLI
124125
125- ```
126+ ``` sh
126127cargo install --path ripzip-cli
127128```
128129
129- ```
130+ ``` text
130131ripzip compress <DIR> -o <FILE> [--level 1-9] [--method deflate|zstd] [--quiet]
131132ripzip extract <ARCHIVE> [-o <DIR>] [--quiet]
132133ripzip list <ARCHIVE> [--verbose]
133134```
134135
135136Aliases: ` c ` , ` x ` , ` l ` .
136137
137- ```
138+ ``` text
138139$ ripzip compress my_project/ -o my_project.zip --method zstd
139140 [00:00:00] [####################################] 142.3MB/142.3MB (1.8GB/s)
140141Created my_project.zip
@@ -163,7 +164,7 @@ Compressed Original Method Name
163164
164165## Architecture
165166
166- ```
167+ ``` text
167168 COMPRESSION PIPELINE
168169
169170 walkdir ──> Vec<FileEntry> ──> rayon::par_iter ──> Vec<CompressedEntry>
@@ -192,7 +193,7 @@ Compressed Original Method Name
192193
193194## Project Structure
194195
195- ```
196+ ``` text
196197ripzip-rs/
197198 ripzip/ # Library crate
198199 src/
@@ -226,7 +227,7 @@ ripzip-rs/
226227
227228117 tests: 35 unit tests + 82 integration tests (3 ZIP64 stress tests are ` #[ignore] ` ).
228229
229- ```
230+ ``` sh
230231cargo test
231232```
232233
0 commit comments