-
Notifications
You must be signed in to change notification settings - Fork 102
zip-cli binary crate #235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
cosmicexplorer
wants to merge
5
commits into
zip-rs:master
Choose a base branch
from
cosmicexplorer:cli
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
zip-cli binary crate #235
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
2cd3089
clearly describe how to perform fuzzing, and make a fuzz/ workspace
cosmicexplorer 33ab21b
add cfg_if! and cfg_if_expr! macro_rules macros
cosmicexplorer dd33de9
Merge branch 'cfg-if-internal' into cli
cosmicexplorer 46563be
add stub cli exes
cosmicexplorer 2cf4e03
Merge branch 'master' into cli
Pr0methean File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,70 @@ | ||
| [package] | ||
| name = "zip-cli" | ||
| version = "0.0.1" | ||
| authors = [ | ||
| "Danny McClanahan <dmcC2@hypnicjerk.ai>", | ||
| ] | ||
| license = "MIT" | ||
| repository = "https: //github.com/zip-rs/zip2.git" | ||
| keywords = ["zip", "archive", "compression", "cli"] | ||
| categories = ["command-line-utilities", "compression", "filesystem", "development-tools::build-utils"] | ||
| # This field is not as important as in the top-level library API, but as there: | ||
| # Any change to rust-version must be reflected also in `README.md` and `.github/workflows/ci.yaml`. | ||
| # The MSRV policy is documented in `README.md`. | ||
| rust-version = "1.83.0" | ||
| description = """ | ||
| Binary for creation and manipulation of zip files. | ||
|
|
||
| This package can enable or disable certain dependencies during the build and install process with | ||
| cargo features. | ||
| """ | ||
| edition = "2021" | ||
|
|
||
| # Prevent this from interfering with workspaces | ||
| [workspace] | ||
| members = ["."] | ||
|
|
||
| [lib] | ||
|
|
||
| [[bin]] | ||
| name = "zip-cli" | ||
|
|
||
| [dependencies.zip] | ||
| path = ".." | ||
| default-features = false | ||
|
|
||
| [features] | ||
| aes-crypto = ["zip/aes-crypto"] | ||
| bzip2 = ["zip/bzip2"] | ||
| chrono = ["zip/chrono"] | ||
| _deflate-any = ["zip/_deflate-any"] | ||
| deflate64 = ["zip/deflate64"] | ||
| deflate = ["zip/deflate"] | ||
| deflate-flate2 = ["zip/deflate-flate2"] | ||
| deflate-flate2-zlib-rs = ["zip/deflate-flate2-zlib-rs"] | ||
| deflate-flate2-zlib = ["zip/deflate-flate2-zlib"] | ||
| deflate-zopfli = ["zip/deflate-zopfli"] | ||
| lzma = ["zip/lzma"] | ||
| ppmd = ["zip/ppmd"] | ||
| time = ["zip/time"] | ||
| xz = ["zip/xz"] | ||
| zstd = ["zip/zstd"] | ||
|
|
||
| # Generate a highly featureful binary by default. | ||
| default = [ | ||
| "aes-crypto", | ||
| "bzip2", | ||
| "deflate64", | ||
| "deflate", | ||
| "lzma", | ||
| "ppmd", | ||
| "time", | ||
| "xz", | ||
| "zstd", | ||
| ] | ||
|
|
||
| [profile.release] | ||
| strip = true | ||
| lto = true | ||
| opt-level = 3 | ||
| codegen-units = 1 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,66 @@ | ||
| [package] | ||
| name = "zip-clite" | ||
| version = "0.0.1" | ||
| authors = [ | ||
| "Danny McClanahan <dmcC2@hypnicjerk.ai>", | ||
| ] | ||
| license = "MIT" | ||
| repository = "https://github.com/zip-rs/zip2.git" | ||
| keywords = ["zip", "archive", "compression", "cli"] | ||
| categories = ["command-line-utilities", "compression", "filesystem", "development-tools::build-utils"] | ||
| # This field is not as important as in the top-level library API, but as there: | ||
| # Any change to rust-version must be reflected also in `README.md` and `.github/workflows/ci.yaml`. | ||
| # The MSRV policy is documented in `README.md`. | ||
| rust-version = "1.83.0" | ||
| description = """ | ||
| Binary for creation and manipulation of zip files. | ||
|
|
||
| This distribution is created to be intentionally very small and easy to audit. It has reduced | ||
| functionality, builds to optimize for size, and only bundles in support for a Rust | ||
| DEFLATE implementation. | ||
| """ | ||
| edition = "2021" | ||
|
|
||
| # Prevent this from interfering with workspaces | ||
| [workspace] | ||
| members = ["."] | ||
|
|
||
| [[bin]] | ||
| name = "zip-clite" | ||
|
|
||
| # NB: This is not a dependency on the top-level `zip` crate, but the `zip-cli` crate (which mirrors | ||
| # the declared features from `zip`). We do not use its `main.rs` entry point, but rely upon | ||
| # `lib.rs`, which was specifically designed to minimize the amount of code specific to | ||
| # `zip-clite`. | ||
| [dependencies.zip-cli] | ||
| path = ".." | ||
| default-features = false | ||
|
|
||
| [features] | ||
| aes-crypto = ["zip-cli/aes-crypto"] | ||
| bzip2 = ["zip-cli/bzip2"] | ||
| chrono = ["zip-cli/chrono"] | ||
| _deflate-any = ["zip-cli/_deflate-any"] | ||
| deflate64 = ["zip-cli/deflate64"] | ||
| deflate = ["zip-cli/deflate"] | ||
| deflate-flate2 = ["zip-cli/deflate-flate2"] | ||
| deflate-flate2-zlib-rs = ["zip-cli/deflate-flate2-zlib-rs"] | ||
| deflate-flate2-zlib = ["zip-cli/deflate-flate2-zlib"] | ||
| deflate-zopfli = ["zip-cli/deflate-zopfli"] | ||
| lzma = ["zip-cli/lzma"] | ||
| ppmd = ["zip-cli/ppmd"] | ||
| time = ["zip-cli/time"] | ||
| xz = ["zip-cli/xz"] | ||
| zstd = ["zip-cli/zstd"] | ||
|
|
||
| # Only bring in the pure-Rust DEFLATE implementation by default. | ||
| default = [ | ||
| "deflate-flate2", | ||
| "deflate-flate2-zlib-rs", | ||
| ] | ||
|
|
||
| [profile.release] | ||
| strip = true | ||
| lto = true | ||
| opt-level = "s" | ||
| codegen-units = 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| use zip_cli::shared_main; | ||
|
|
||
| fn main() { | ||
| shared_main() | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.