Skip to content

Conversation

@cruzzil
Copy link
Contributor

@cruzzil cruzzil commented Dec 25, 2025

Using the definitions in zstd.h, marked the relevant functions as deprecated in the code and where possible added the since and note tags.

@codecov
Copy link

codecov bot commented Jan 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

Flag Coverage Δ
test-aarch64-apple-darwin 32.71% <100.00%> (-0.26%) ⬇️
test-aarch64-unknown-linux-gnu 31.67% <100.00%> (-0.04%) ⬇️
test-i686-unknown-linux-gnu 31.74% <100.00%> (-0.02%) ⬇️
test-x86_64-unknown-linux-gnu 33.50% <100.00%> (+0.10%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
lib/compress/zstd_compress.rs 39.21% <ø> (+0.58%) ⬆️
lib/decompress/zstd_decompress.rs 53.53% <ø> (-8.32%) ⬇️
lib/decompress/zstd_decompress_block.rs 76.39% <ø> (ø)
lib/dictBuilder/zdict.rs 78.83% <100.00%> (+0.22%) ⬆️

... and 4 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@folkertdev folkertdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks!


#[deprecated(
since = "1.5.6",
note = "For debugging only, will be replaced by [`ZSTD_extractSequences`]"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the rustdoc link does not work in this position currently.

rust-lang/rust#98342

I kind of think that it should though, so this is just a note.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I actually implemented this, so with nightly this renders correctly now (and that will make it to stable in ~12 weeks)

rust-lang/rust#150721

}

#[deprecated(
since = "1.5.6",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These versions are zstd versions, not versions of this crate. It kind of looks fine though, and it seems like a good way to preserve and present this information.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually @bjorn3 would it be better to make this something like 0.0.0+1.5.6? We'll probably never release that version, but currently it may look like we're deprecating symbols in future releases which could be confusing.

@folkertdev
Copy link
Member

I think we should just blanket allow the use of deprecated functions in our test crate. Also this needs a rebase.

@cruzzil
Copy link
Contributor Author

cruzzil commented Jan 11, 2026

Rebased and allowed deprecated functions in tests/fuzzers

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.

2 participants