Skip to content

Commit f7c6477

Browse files
Merge pull request #524 from wcampbell0x2a/update-deku-again
Update Deku Reader and Writer
2 parents 0d80372 + a5eb182 commit f7c6477

File tree

16 files changed

+381
-363
lines changed

16 files changed

+381
-363
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
# build lib and bins with cross
5353
- run: $BUILD_CMD build ${{ matrix.features }} --target ${{ matrix.job.target }} --release --locked --workspace --features xz-static
5454
# test with cross, skipping slow test and tests that use more then qemu default memory
55-
- run: CROSS_CONTAINER_OPTS="--network host" RUST_LOG=info $BUILD_CMD test --workspace --release ${{ matrix.features }} --target ${{ matrix.job.target }} --features xz-static --locked -- --skip slow --skip no_qemu
55+
- run: CROSS_CONTAINER_OPTS="--network host" RUST_LOG=info $BUILD_CMD test --workspace --release ${{ matrix.features }} --target ${{ matrix.job.target }} --features xz-static --locked -- --skip slow --skip no_qemu
5656
# build/test all supported on native x86_64 arch for library and bins (all tests)
5757
build-test-native:
5858
runs-on: ubuntu-latest

.github/workflows/msrv.yml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ on:
99

1010
name: Check MSRV of backhand
1111
jobs:
12-
build-test:
12+
build-test-backhand:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
fail-fast: false
1616
matrix:
1717
toolchain:
1818
# msrv of backhand
19-
- 1.67.1
19+
- 1.72.1
2020

2121
steps:
2222
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
@@ -27,3 +27,22 @@ jobs:
2727
with:
2828
toolchain: ${{ matrix.toolchain }}
2929
- run: cargo check --locked -p backhand
30+
31+
build-test-backhand-cli:
32+
runs-on: ubuntu-latest
33+
strategy:
34+
fail-fast: false
35+
matrix:
36+
toolchain:
37+
# msrv of backhand-cli
38+
- 1.74
39+
40+
steps:
41+
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
42+
- name: Populate cache
43+
uses: ./.github/workflows/cache
44+
45+
- uses: dtolnay/rust-toolchain@master
46+
with:
47+
toolchain: ${{ matrix.toolchain }}
48+
- run: cargo check --locked -p backhand-cli

.github/workflows/pull_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
version: 'Unreleased'
3030
activationLabels: 'C-dependencies,dependabot-reviewed'
3131
changelogPath: './CHANGELOG.md'
32-
32+
3333
- name: Commit the changes
3434
uses: stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842 # v5.0.1
3535
with:

CHANGELOG.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

88
## [Unreleased]
9+
### `backhand`
10+
- Update MSRV to 1.72.1 ([#524](https://github.com/wcampbell0x2a/backhand/pull/524))
11+
12+
### Dependencies
13+
- Bump `deku` from 0.16.0 to 0.17.0 ([#524](https://github.com/wcampbell0x2a/backhand/pull/524))
914

1015
### Dependencies
1116
- Bump `libc` from 0.2.153 to 0.2.154 ([#546](https://github.com/wcampbell0x2a/backhand/pull/546))
@@ -78,7 +83,7 @@ Added items to the public API
7883
- Bump MSRV to `1.74` for `clap-4.5.1` update ([#483](https://github.com/wcampbell0x2a/backhand/pull/483))
7984
### `backhand-test`
8085
- Reduced maximum allocation during testing by free'ing right after full usage ([#504](https://github.com/wcampbell0x2a/backhand/pull/504))
81-
#### unsquashfs
86+
#### unsquashfs
8287
- Performance: Remove progress bar Mutex lock when `--quiet` ([#430](https://github.com/wcampbell0x2a/backhand/pull/430))
8388
### Dependencies
8489
- Bump `actions/upload-artifact` from 4.1.0 to 4.3.1 ([#435](https://github.com/wcampbell0x2a/backhand/pull/435), [#446](https://github.com/wcampbell0x2a/backhand/pull/446), [#465](https://github.com/wcampbell0x2a/backhand/pull/465))
@@ -110,7 +115,7 @@ Added items to the public API
110115
### `backhand-cli`
111116
- Enable overflow-checks for dist builds ([#421](https://github.com/wcampbell0x2a/backhand/pull/421))
112117

113-
#### unsquashfs
118+
#### unsquashfs
114119
- Use feature `gzip-zune-inflate` for dist build and speed improvements ([#419](https://github.com/wcampbell0x2a/backhand/pull/419))
115120
- Updated benchmarks to show improvement ([#419](https://github.com/wcampbell0x2a/backhand/pull/419))
116121

@@ -173,7 +178,7 @@ For example, the following is now allowed:
173178
- Bump MSRV to `1.73.0` to use now stabilized `std::os::unix::fs::lchown`
174179
- Add color styling to help output ([#387](https://github.com/wcampbell0x2a/backhand/pull/387))
175180

176-
#### unsquashfs
181+
#### unsquashfs
177182
- Changed name to `unsquashfs-backhand` ([#356](https://github.com/wcampbell0x2a/backhand/pull/356))
178183
- Add progress bar for a cleaner output when extracting files ([#272](https://github.com/wcampbell0x2a/backhand/pull/272))
179184
- Add `--quiet` for not displaying progress bar and RUST_LOG output ([#272](https://github.com/wcampbell0x2a/backhand/pull/272))
@@ -608,7 +613,7 @@ See https://github.com/wcampbell0x2a/backhand/discussions/145 for more details.
608613
These are benchmarked against the SquashFS image from `TP-Link AXE5400 Mesh Wi-Fi 6E Range Extender`.
609614

610615
##### Speed
611-
For single threaded mode `squashfs-tools/unsquashfs-v4.6.1`, testing on my machine lets me know that
616+
For single threaded mode `squashfs-tools/unsquashfs-v4.6.1`, testing on my machine lets me know that
612617
our `backhand/unsquashfs` is around the same speed performance with a single thread.
613618

614619
##### Allocations
@@ -644,7 +649,7 @@ is 74.8MB, while our `backhand/unsquashfs` only uses 18.1MB.
644649

645650
## [v0.10.1] - 2023-02-22
646651
### Added
647-
- Zstd compression support
652+
- Zstd compression support
648653

649654
### Fixed
650655
- `FilesystemWriter` Debug impl now works
@@ -715,7 +720,7 @@ is 74.8MB, while our `backhand/unsquashfs` only uses 18.1MB.
715720
```
716721

717722
### Performance
718-
This releases allows massive performance improvements by only reading files from disk when required
723+
This releases allows massive performance improvements by only reading files from disk when required
719724
and reducing the amount of memory required to read and write an image.
720725

721726
Thanks [@rbran](https://github.com/rbran/) for the incredible work on the performance of the library.
@@ -736,7 +741,7 @@ write_read/tplink_ax1800
736741
time: [6.7506 s 6.8287 s 6.9349 s]
737742
only_read/netgear_ax6100v2
738743
time: [5.1153 ms 5.1234 ms 5.1305 ms]
739-
only_read/tplink_ax1800
744+
only_read/tplink_ax1800
740745
time: [22.383 ms 22.398 ms 22.415 ms]
741746
```
742747

0 commit comments

Comments
 (0)