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

Update ruzstd requirement from 0.7 to 0.8 in the cargo group #409

Merged
merged 3 commits into from
Dec 25, 2024

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 23, 2024

Updates the requirements on ruzstd to permit the latest version.
Updates ruzstd to 0.8.0

Release notes

Sourced from ruzstd's releases.

Compression support

This release adds initial support for compressing data into the zstd format. This enables interoperability with workflows that require payloads to be encoded with zstd all in pure rust, no C dependencies needed.

API changes

The public API of the crate has been reorganized and cleaned up. Since there is now also encoding support the root couldn't really be used for structures used to decode data.

Errors

Decoding errors now live in their own module ruzstd::decoding::errors. This enabled hiding a lot of the internal modules and by that decluttering the docs.

Decoders

The FrameDecoder and StreamingDecoder are now found in ruzstd::decoding instead of the root of the namespace. This is because there is now the new ruzstd::encoding module which contains the FrameCompressor as well as the compress/compress_to_vec convenience functions.

Changelog

Sourced from ruzstd's changelog.

After 0.8.0 (Current)

After 0.7.3

  • Add initial compression support
  • Breaking Refactor modules to reflect that this is now also a compression library

After 0.7.2

  • Soundness fix in decoding::RingBuffer. The lengths of the diferent regions where sometimes calculated wrongly, resulting in reads of heap memory not belonging to that ringbuffer

  • Added convenience functions to FrameDecoder to decode multiple frames from a buffer (https://github.com/philipc)

After 0.7.1

After 0.7.0

After 0.6.0

  • Small fix in the zstd binary, progress tracking was slighty off for skippable frames resulting in an error only when the last frame in a file was skippable
  • Small performance improvement by reorganizing code with #[cold] annotations
  • Documentation for StreamDecoder mentioning the limitations around multiple frames (https://github.com/Sorseg)
  • Documentation around skippable frames (https://github.com/Sorseg)
  • Breaking StreamDecoder API changes to get access to the inner parts (https://github.com/ifd3f)
  • Big internal documentation contribution (https://github.com/zleyyij)
  • Dropped derive_more as a dependency (https://github.com/xd009642)
  • Small improvement by removing the error cases from the reverse bitreader (and making sure invalid requests can't even happen)

After 0.5.0

  • Make the hashing checksum optional (thanks to @​tamird)
    • breaking change as the public API changes based on features
  • The FrameDecoder is now Send + Sync (RingBuffer impls these traits now)
Commits
  • b74ea90 bump version to 0.8.0
  • 1ed0ec8 cargo fmt
  • d7643f4 mention Read::take in the doc for the compressor and implement it for the nos...
  • 7be4381 fix take_drain to do what it says on the tin
  • 2cec9cf better doc for FrameDecoder
  • 5c547f0 mention that the framedecoder allows reusing ressources
  • 48f6f22 Make FrameCompressor doc nicer
  • 8bb22b2 no std imports!
  • c3022ed fix doc for compress_to_vec
  • f61fedc update doc on FrameCompressor::compress
  • Additional commits viewable in compare view

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 merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

Copy link
Contributor Author

dependabot bot commented on behalf of github Dec 24, 2024

Looks like ruzstd is no longer updatable, so this is no longer needed.

@dependabot dependabot bot closed this Dec 24, 2024
@dependabot dependabot bot deleted the dependabot/cargo/cargo-1c7cc5d13e branch December 24, 2024 18:13
@taiki-e taiki-e restored the dependabot/cargo/cargo-1c7cc5d13e branch December 24, 2024 18:14
@taiki-e taiki-e reopened this Dec 24, 2024
@taiki-e taiki-e force-pushed the dependabot/cargo/cargo-1c7cc5d13e branch 2 times, most recently from 7bf2fbb to 78e6683 Compare December 25, 2024 18:00
@taiki-e taiki-e force-pushed the dependabot/cargo/cargo-1c7cc5d13e branch from 78e6683 to ef13d6a Compare December 25, 2024 18:04
This increases MSRV since ruzstd 0.8 uses `#[expect]` attribute
stabilized in Rust 1.81 and exclusive range patterns stabilized in Rust
1.80.

```
  error[E0658]: the `#[expect]` attribute is an experimental feature
     --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ruzstd-0.8.0/src/decoding/frame.rs:116:5
      |
  116 |     #[expect(dead_code)]
      |     ^^^^^^^^^^^^^^^^^^^^
      |
      = note: see issue #54503 <rust-lang/rust#54503> for more information

  error[E0658]: exclusive range pattern syntax is experimental
     --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ruzstd-0.8.0/src/encoding/blocks/compressed.rs:209:9
      |
  209 |         0..6 => (0b00u8, 10),
      |         ^^^^
      |
      = note: see issue #37854 <rust-lang/rust#37854> for more information

  error[E0658]: exclusive range pattern syntax is experimental
     --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ruzstd-0.8.0/src/encoding/blocks/compressed.rs:210:9
      |
  210 |         6..1024 => (0b01, 10),
      |         ^^^^^^^
      |
      = note: see issue #37854 <rust-lang/rust#37854> for more information

  error[E0658]: exclusive range pattern syntax is experimental
     --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ruzstd-0.8.0/src/encoding/blocks/compressed.rs:211:9
      |
  211 |         1024..16384 => (0b10, 14),
      |         ^^^^^^^^^^^
      |
      = note: see issue #37854 <rust-lang/rust#37854> for more information

  error[E0658]: exclusive range pattern syntax is experimental
     --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ruzstd-0.8.0/src/encoding/blocks/compressed.rs:212:9
      |
  212 |         16384..262144 => (0b11, 18),
      |         ^^^^^^^^^^^^^
      |
      = note: see issue #37854 <rust-lang/rust#37854> for more information
```
@taiki-e taiki-e force-pushed the dependabot/cargo/cargo-1c7cc5d13e branch from ef13d6a to 30b654a Compare December 25, 2024 18:08
@taiki-e taiki-e merged commit 255ba51 into main Dec 25, 2024
28 checks passed
@taiki-e taiki-e deleted the dependabot/cargo/cargo-1c7cc5d13e branch December 25, 2024 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant