-
Notifications
You must be signed in to change notification settings - Fork 84
test(fuzz): incorporate fuzzing crates into a single workspace, and improve fuzzing docs #437
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ keywords = ["zip", "archive", "compression"] | |
# 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" | ||
categories = ["compression", "filesystem", "parser-implementations"] | ||
description = """ | ||
Library to support the reading and writing of zip files. | ||
""" | ||
|
@@ -23,10 +24,8 @@ exclude = ["tests/**", "examples/**", ".github/**", "fuzz_read/**", "fuzz_write/ | |
all-features = true | ||
rustdoc-args = ["--cfg", "docsrs"] | ||
|
||
[workspace.dependencies] | ||
time = { version = "0.3.37", default-features = false } | ||
|
||
[dependencies] | ||
arbitrary = { version = "1.4", features = ["derive"], optional = true } | ||
aes = { version = "0.8", optional = true } | ||
bzip2 = { version = "0.6.0", optional = true } | ||
chrono = { version = "^0.4.27", optional = true } | ||
|
@@ -42,7 +41,7 @@ nt-time = { version = "0.10.6", default-features = false, optional = true } | |
ppmd-rust = { version = "1.2", optional = true } | ||
pbkdf2 = { version = "0.12", optional = true } | ||
sha1 = { version = "0.10", optional = true } | ||
time = { workspace = true, optional = true, features = [ | ||
time = { version = "0.3.37", default-features = false, optional = true, features = [ | ||
"std", | ||
] } | ||
zeroize = { version = "1.8", optional = true, features = ["zeroize_derive"] } | ||
|
@@ -52,19 +51,17 @@ deflate64 = { version = "0.1.9", optional = true } | |
lzma-rust2 = { version = "0.13", optional = true, default-features = false, features = ["std", "encoder", "optimization", "xz"] } | ||
bitstream-io = { version = "4.5.0", optional = true } | ||
|
||
[target.'cfg(fuzzing)'.dependencies] | ||
arbitrary = { version = "1.4.1", features = ["derive"] } | ||
|
||
[dev-dependencies] | ||
bencher = "0.1.5" | ||
getrandom = { version = "0.3.1", features = ["wasm_js", "std"] } | ||
walkdir = "2.5" | ||
time = { workspace = true, features = ["formatting", "macros"] } | ||
time = { version = "0.3", features = ["formatting", "macros"] } | ||
anyhow = "1.0.95" | ||
clap = { version = "=4.4.18", features = ["derive"] } | ||
tempfile = "3.15" | ||
|
||
[features] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The new |
||
arbitrary = ["dep:arbitrary"] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Naming this feature wiithout an underscore prefix will make it part of the public API, meaning e.g. that we can't delete it without bumping the major version. Are you sure that's wise? It seems to me that even if someone needs the implementation for the purpose of fuzzing a downstream crate, then they should either copy it or accept the risk of an incompatible change. |
||
aes-crypto = ["dep:aes", "dep:constant_time_eq", "hmac", "pbkdf2", "sha1", "getrandom", "zeroize"] | ||
chrono = ["dep:chrono"] | ||
_deflate-any = [] | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good addition of categories for better discoverability on crates.io. The selected categories "compression", "filesystem", and "parser-implementations" are appropriate for a ZIP library.