Skip to content

Commit bb11e45

Browse files
committed
Add package metadata
1 parent 459a91e commit bb11e45

5 files changed

Lines changed: 22 additions & 9 deletions

File tree

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
[workspace]
22
members = ["ripzip", "ripzip-cli"]
33
resolver = "2"
4+
5+
[workspace.package]
6+
homepage = "https://github.com/velopack/ripzip-rs"
7+
repository = "https://github.com/velopack/ripzip-rs"

README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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
6161
cargo bench -p ripzip
6262
```
6363

@@ -70,7 +70,7 @@ Add to your `Cargo.toml`:
7070
ripzip = { path = "ripzip" }
7171
```
7272

73-
```rust
73+
```rust,no_run
7474
use std::path::Path;
7575
use 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
126127
cargo install --path ripzip-cli
127128
```
128129

129-
```
130+
```text
130131
ripzip compress <DIR> -o <FILE> [--level 1-9] [--method deflate|zstd] [--quiet]
131132
ripzip extract <ARCHIVE> [-o <DIR>] [--quiet]
132133
ripzip list <ARCHIVE> [--verbose]
133134
```
134135

135136
Aliases: `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)
140141
Created 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
196197
ripzip-rs/
197198
ripzip/ # Library crate
198199
src/
@@ -226,7 +227,7 @@ ripzip-rs/
226227

227228
117 tests: 35 unit tests + 82 integration tests (3 ZIP64 stress tests are `#[ignore]`).
228229

229-
```
230+
```sh
230231
cargo test
231232
```
232233

ripzip-cli/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,16 @@ edition = "2021"
55
rust-version = "1.75"
66
description = "A multi-threaded zip/unzip CLI"
77
license = "MIT"
8+
readme = "../README.md"
9+
homepage.workspace = true
10+
repository.workspace = true
811

912
[[bin]]
1013
name = "ripzip"
1114
path = "src/main.rs"
1215

1316
[dependencies]
14-
ripzip = { path = "../ripzip" }
17+
ripzip = { version = "0.1.0", path = "../ripzip" }
1518
clap = { version = "4", features = ["derive"] }
1619
indicatif = "0.18"
1720
anyhow = "1"

ripzip/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ edition = "2021"
55
rust-version = "1.75"
66
description = "A multi-threaded zip/unzip library"
77
license = "MIT"
8+
readme = "../README.md"
9+
homepage.workspace = true
10+
repository.workspace = true
811

912
[dependencies]
1013
flate2 = { version = "1", features = ["zlib-rs"] }

ripzip/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![doc = include_str!("../../README.md")]
2+
13
pub mod compress;
24
pub mod error;
35
pub mod extract;

0 commit comments

Comments
 (0)