Skip to content

deps: bump delharc from 0.6.1 to 0.8.0 - #7

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/delharc-0.8.0
Open

deps: bump delharc from 0.6.1 to 0.8.0#7
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/delharc-0.8.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 27, 2026

Copy link
Copy Markdown

Bumps delharc from 0.6.1 to 0.8.0.

Changelog

Sourced from delharc's changelog.

v0.8.0

General changes:

  • Minimum supported rust version changed to Rust 1.95 (if-let guards in matches).
  • Implemented PMarc's archiver -pm1- and -pm2- compression methods decoders.
  • More unit tests to improve coverage and fuzz tests added.
  • More archive test files imported from lhasa project.
  • Benchmarking added to guide the changes in the critical functions.
  • examples: merged extract and extract_nostd into a single file.
  • examples: list_files added.
  • clippy suggested changes.

Breaking changes:

  • Decoder::Error now requires core::error::Error instead of fmt::Debug.
  • LhaError changed to include new error enums instead of static strings.
  • The way extended area is parsed on level 0 headers by LhaHeader::read() has changed. Previously the first byte of the extended area on level 0 was unconditionally treated as OS ID byte and removed from the extended area. Now the whole content of the extended area is stored in the extended_area property and the first byte of the extended_area is only consulted by the parse_os_type() method to check for selected OS identifiers.
  • CompressionMethod::is_directory() now takes self by value.
  • Fixed, but also altered the way LhaHeader::parse_pathname() and parse_pathname_to_str() treat files which have none or empty filename field but non-empty directory field. In this instance a trailing directory separator is appended to the parsed path name. If a level 0 or 1 filename entry contains a trailing directory separator and there is no directory field, the directory separator will be present at the end of the parsed path. This change helps to detect if an entry is a directory name rather than a file name.
  • The nul character in filename is now a terminator if either an OS ID is explicitly Amiga or if header level is 0 and OS ID is not provided in the extended area.
  • LhaHeader::is_directory() now returns true also for -lh0- compression methods under specific conditions.

New features:

  • pm activates PMarc archiver decoders, enabled now by default.
  • extend expose previously internal implementations of a ring buffer, a static Huffman Tree and a bit-stream reader; this allows users to build custom LhaV2Decoder variants or build the custom implementations more easily.
  • no-unsafe-assertions remove unsafe assertions that eliminate boundary checks in critical functions; it only affects code if debug_assertions are disabled. if debug_assertions are enabled all unsafe assertions become the run-time assertions.
  • fast-tree-build enables more complex, but faster static tree building method.

Improvements:

  • All error objects now implement core::error::Error.
  • Replace potential temporary large stack allocations in decoders with bytemuck::zeroed_box().
  • Reimplemented and simplified tree building methods of the dynamic Huffman Tree used by lhv1 decoder.
  • Static and dynamic Huffman Tree implementations refactored to use unsafe assertions instead of unsafe slice accesses, which can be disabled with the no-unsafe-assertions feature.
  • An alternative tree building method added to the static Huffman Tree object, gated under the fast-tree-build feature.
  • Improved the ring buffer implementation.
  • Error messages changed to better reflect causes of errors.
  • LhaError to std::io::Error conversion includes the orignal LhaError encapsulation variant.

Additions:

  • New error objects: LhaHeaderError, DecompressionError and BuildError.
  • LhaDecodeReader::seek_next_file() added, using io::Seek instead of discarding read data.
  • LhaDecodeReader::into_parts(), get_decoder(), get_mut_decoder() and take_decoder() added.
  • get_ref() and get_mut() methods added allowing access to the underlying reader stream.
  • CompressionMethod::is_compressed() added.
  • LhaHeader::parse_unix_uid_gid() added.
  • LhaHeader::parse_unix_permissions() and a new Permissions bitflag object added.
  • LhaHeader::parse_os_9_attrs() and a new Os9Attrs bitflag object added.
  • LhaHeader now derives PartialEq and Eq.
  • fmt::Display implementation added to MsDosAttrs and OsType.
  • LHARK OS ID is now recognized.
  • EXT_HEADER_METADATA=0x71 added and this is where MorphOs stores the file comment on header level 2.

... (truncated)

Commits
  • ea1d90f Merge pull request #13 from royaltm/devel
  • f0baa7c errors: conversion From<UnexpectedEofError> for LhaError for completeness
  • 551d66c use seek_next_file in the examples
  • 125669e export error module
  • fcc9f0b 100% coverage
  • 4c5a0ad LhaHeader::read - fix extra header collection, split off header size before p...
  • 763332f improve coverage
  • aaaf9a2 errors: add error conversions for completeness + coverage
  • 252fbe7 improve coverage
  • dba5be0 clippy pass
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [delharc](https://github.com/royaltm/rust-delharc) from 0.6.1 to 0.8.0.
- [Changelog](https://github.com/royaltm/rust-delharc/blob/master/CHANGELOG.md)
- [Commits](royaltm/rust-delharc@v0.6.1...v0.8.0)

---
updated-dependencies:
- dependency-name: delharc
  dependency-version: 0.8.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file rust Pull requests that update rust code labels Aug 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file rust Pull requests that update rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants