|
1 | 1 | [package] |
2 | | -name = "zip-clite" |
3 | | -version = "0.0.1" |
4 | | -authors = [ |
| 2 | +name = "zip-clite" |
| 3 | +version = "0.0.1" |
| 4 | +authors = [ |
5 | 5 | "Danny McClanahan <[email protected]>", |
6 | 6 | ] |
7 | | -license = "MIT" |
8 | | -repository = "https://github.com/zip-rs/zip2.git" |
9 | | -keywords = ["zip", "archive", "compression", "cli"] |
10 | | -categories = ["command-line-utilities", "compression", "filesystem", "development-tools::build-utils"] |
| 7 | +license = "MIT" |
| 8 | +repository = "https://github.com/zip-rs/zip2.git" |
| 9 | +keywords = ["zip", "archive", "compression", "cli"] |
| 10 | +categories = ["command-line-utilities", "compression", "filesystem", "development-tools::build-utils"] |
11 | 11 | # This field is not as important as in the top-level library API, but as there: |
12 | 12 | # Any change to rust-version must be reflected also in `README.md` and `.github/workflows/ci.yaml`. |
13 | 13 | # The MSRV policy is documented in `README.md`. |
14 | | -rust-version = "1.83.0" |
15 | | -description = """ |
| 14 | +rust-version = "1.83.0" |
| 15 | +description = """ |
16 | 16 | Binary for creation and manipulation of zip files. |
17 | 17 |
|
18 | 18 | This distribution is created to be intentionally very small and easy to audit. It has reduced |
19 | 19 | functionality, builds to optimize for size, and only bundles in support for a Rust |
20 | 20 | DEFLATE implementation. |
21 | 21 | """ |
22 | | -edition = "2021" |
| 22 | +edition = "2021" |
23 | 23 |
|
24 | 24 | # Prevent this from interfering with workspaces |
25 | 25 | [workspace] |
26 | | -members = ["."] |
| 26 | +members = ["."] |
27 | 27 |
|
28 | 28 | [[bin]] |
29 | | -name = "zip-clite" |
| 29 | +name = "zip-clite" |
30 | 30 |
|
31 | 31 | # NB: This is not a dependency on the top-level `zip` crate, but the `zip-cli` crate (which mirrors |
32 | 32 | # the declared features from `zip`). We do not use its `main.rs` entry point, but rely upon |
33 | 33 | # `lib.rs`, which was specifically designed to minimize the amount of code specific to |
34 | 34 | # `zip-clite`. |
35 | 35 | [dependencies.zip-cli] |
36 | | -path = ".." |
37 | | -default-features = false |
38 | | -features = [ |
39 | | - "deflate-flate2", |
40 | | - "deflate-flate2-zlib-rs", |
41 | | -] |
| 36 | +path = ".." |
| 37 | +default-features = false |
42 | 38 |
|
43 | | -# No features, no options, no decisions! We're just making it explicit. |
44 | 39 | [features] |
45 | | -default = [] |
| 40 | +aes-crypto = ["zip-cli/aes-crypto"] |
| 41 | +bzip2 = ["zip-cli/bzip2"] |
| 42 | +chrono = ["zip-cli/chrono"] |
| 43 | +_deflate-any = ["zip-cli/_deflate-any"] |
| 44 | +deflate64 = ["zip-cli/deflate64"] |
| 45 | +deflate = ["zip-cli/deflate"] |
| 46 | +deflate-flate2 = ["zip-cli/deflate-flate2"] |
| 47 | +deflate-flate2-zlib-rs = ["zip-cli/deflate-flate2-zlib-rs"] |
| 48 | +deflate-flate2-zlib = ["zip-cli/deflate-flate2-zlib"] |
| 49 | +deflate-zopfli = ["zip-cli/deflate-zopfli"] |
| 50 | +lzma = ["zip-cli/lzma"] |
| 51 | +ppmd = ["zip-cli/ppmd"] |
| 52 | +time = ["zip-cli/time"] |
| 53 | +xz = ["zip-cli/xz"] |
| 54 | +zstd = ["zip-cli/zstd"] |
| 55 | + |
| 56 | +# Only bring in the pure-Rust DEFLATE implementation by default. |
| 57 | +default = [ |
| 58 | + "deflate-flate2", |
| 59 | + "deflate-flate2-zlib-rs", |
| 60 | +] |
46 | 61 |
|
47 | 62 | [profile.release] |
48 | | -strip = true |
49 | | -lto = true |
50 | | -opt-level = "s" |
51 | | -codegen-units = 1 |
| 63 | +strip = true |
| 64 | +lto = true |
| 65 | +opt-level = "s" |
| 66 | +codegen-units = 1 |
0 commit comments