Skip to content
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

chore: Turn jean into an example, move things closer to the root of the repo #53

Merged
merged 3 commits into from
Jan 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ jobs:
cargo doc --all-features --no-deps
- name: Run cargo clippy
run: |
cargo check --all-features -p jean
cargo hack clippy --feature-powerset --group-features deflate,deflate64,lzma,bzip2 -p rc-zip
cargo hack clippy --feature-powerset --group-features deflate,deflate64,lzma,bzip2
- name: Run tests and collect coverage
run: just ci-test
- name: Upload coverage information
Expand Down
21 changes: 6 additions & 15 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

59 changes: 51 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,59 @@
[workspace]
members = [ "crates/*" ]
resolver = "2"

[workspace.package]
[package]
name = "rc-zip"
version = "2.0.1"
description = "zip reading and writing"
description = "zip reading"
repository = "https://github.com/fasterthanlime/rc-zip"
license = "Apache-2.0 OR MIT"
authors = ["Amos Wenger <[email protected]>"]
edition = "2021"
readme = "README.md"

keywords = ["zip", "unzip"]
categories = ["compression"]

[lib]
name = "rc_zip"
path = "src/lib.rs"

[[example]]
name = "jean"
path = "examples/jean/src/main.rs"

[dependencies]
winnow = "0.5.35"
pretty-hex = "0.4.1"
oval = "1.0.0"
chrono = "0.4.33"
encoding_rs = "0.8.33"
crc32fast = "1.3.2"
positioned-io = { version = "0.3.3", optional = true }
tracing = "0.1.40"
oem_cp = "2.0.0"
thiserror = "1.0.56"
chardetng = "0.1.17"
flate2 = { version = "1.0.28", optional = true }
num_enum = "0.7.2"
byteorder = "1.5.0"
cfg-if = "1.0.0"
lzma-rs = { version = "0.3.0", features = ["stream"], optional = true }
deflate64 = { version = "0.1.7", optional = true }
bzip2 = { version = "0.4.4", optional = true }

[features]
default = ["sync", "file", "deflate"]
sync = []
file = ["positioned-io"]
deflate = ["dep:flate2"]
deflate64 = ["dep:deflate64"]
lzma = ["dep:lzma-rs"]
bzip2 = ["dep:bzip2"]

[workspace.dependencies]
positioned-io = { version = "0.3.3" }
[dev-dependencies]
clap = { version = "4.4.18", features = ["derive"] }
humansize = "2.1.3"
indicatif = "0.17.7"
tracing-subscriber = "0.3.18"
tracing-test = "0.2.4"

[profile.release]
debug = 1
44 changes: 0 additions & 44 deletions crates/rc-zip/Cargo.toml

This file was deleted.

1 change: 0 additions & 1 deletion crates/rc-zip/testdata/test-zips/.gitignore

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions crates/rc-zip/src/tests.rs → src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ impl ZipTest {

fn zips_dir() -> PathBuf {
PathBuf::from(env!("CARGO_MANIFEST_DIR"))
.join("testdata")
.join("test-zips")
.join("tests")
.join("data")
}

fn time_zone(hours: i32) -> FixedOffset {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading
Loading