Skip to content

'core2' dependency is now unmaintained and yanked from crates.io #85

Closed

Description

@xanarin

core2 is no longer supported and all of its published versions to crates.io have been yanked. It might be worth considering switching the dependency to core, as recommended in the core2 README.

core is still missing a lot of what is provided by core2/std::io, so an alternative no_std crate that provides an API similar to io will probably be required.

Activity

  1. LockedThread commented on Apr 14, 2026

    @LockedThread

    Temporarily you can patch it to the previous commit before the yank:

    [patch.crates-io]
    core2 = { git = "https://github.com/bbqsrc/core2", rev = "545e84bcb0f235b12e21351e0c69767958efe2a7" }
    

    Validate the revision yourself at https://github.com/bbqsrc/core2/tree/545e84bcb0f235b12e21351e0c69767958efe2a7

  2. xanarin commented on Apr 14, 2026

    @xanarin
    Author

    It seems like no_std_io might be an (almost) drop-in replacement, given that it's originally forked from core2, but still "officially" maintained.

  3. abraemer commented on Apr 14, 2026

    @abraemer
    Contributor

    In my PR #86 I replaced core2 with no_std_io2 which is a fork of no_std_io

  4. xanarin commented on Apr 14, 2026

    @xanarin
    Author

    Looks like no_std_io2 is more maintained than no_std_io; good choice

  5. LockedThread commented on Apr 14, 2026

    @LockedThread
  6. sile commented on Apr 14, 2026

    @sile
    Owner

    Thank you for creating this issue.
    I will review the PR within a week.

  7. added a commit that references this issue on Apr 15, 2026
  8. sile commented on Apr 15, 2026

    @sile
    Owner

    I will start reviewing the PR soon.

    BTW, I recently prefer to develop library crates with as few dependencies as possible (e.g., nojson, noargs).
    So, I started developing noflate (a no-deps DEFLATE library) in the same spirit.
    That said, using no_std_io2 seems a reasonable choice for this issue. As a long-term solution, switching to noflate might be one option worth considering, though it is not API-compatible with libflate.

  9. sile commented on Apr 15, 2026

    @sile
    Owner

    Merged the PR and published libflate v2.3.0.
    This was an unfortunate situation, so thank you very much for reporting it and helping address it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions