Skip to content

Conversation

@cyqsimon
Copy link
Contributor

@cyqsimon cyqsimon commented Dec 31, 2025

While bumping my dependency on include-flate for one of my repos, I noticed that the post-bump version had issues with cross-compilation due to a new zstd dependency. That's an unrelated issue with cargo-xwin, but it did lead me to notice that currently it is impossible to fully eliminate libflate or zstd as dependencies of include-flate, even if you don't actually use them.

In other words, feature enablement hasn't been done cleanly. This PR fixes that, and adds the appropriate checks to guard against it in the future.

@cyqsimon cyqsimon marked this pull request as draft January 2, 2026 14:18
@cyqsimon
Copy link
Contributor Author

cyqsimon commented Jan 2, 2026

Just found some issues that could use a bit of extra fixing up. Will do an interactive rebase to tidy up the history.

@cyqsimon cyqsimon force-pushed the feature-gate branch 2 times, most recently from 0e754be to f735bbb Compare January 2, 2026 14:28
Comment on lines 99 to 106

$(#[$meta])*
$(pub $(($($vis)+))?)? static $name: ::std::sync::LazyLock<::std::vec::Vec<u8>> = ::std::sync::LazyLock::new(|| {
$crate::decode($crate::codegen::deflate_file!($path), None)
let algo = $crate::__parse_algo!($($algo)?);
$crate::decode($crate::codegen::deflate_file!($path $($algo)?), Some(algo))
});
};
($(#[$meta:meta])*
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This must have been an oversight in #25 no? Anyways, proper support has been added.

@cyqsimon cyqsimon marked this pull request as ready for review January 2, 2026 14:45
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