Skip to content

Commit

Permalink
Remove the core2 dependency
Browse files Browse the repository at this point in the history
We would like to stabalise this library but the `core2` dependency is
unstable. Lets just remove it.
  • Loading branch information
tcharding committed Sep 5, 2024
1 parent 617cfe7 commit e2fb576
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ alloc = []

[dependencies]
arrayvec = { version = "0.7.2", default-features = false }
core2 = { version = "0.3.2", default-features = false, optional = true }
serde = { version = "1.0", default-features = false, optional = true }


Expand Down
2 changes: 1 addition & 1 deletion contrib/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -ex

FEATURES="std alloc core2 serde"
FEATURES="std alloc serde"
MSRV="1\.48\.0"

cargo --version
Expand Down
5 changes: 1 addition & 4 deletions src/iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ use core::str;
#[cfg(feature = "std")]
use std::io;

#[cfg(all(feature = "core2", not(feature = "std")))]
use core2::io;

use crate::error::{InvalidCharError, OddLengthStringError};

/// Convenience alias for `HexToBytesIter<HexDigitsIter<'a>>`.
Expand Down Expand Up @@ -87,7 +84,7 @@ impl<T: Iterator<Item = [u8; 2]> + ExactSizeIterator> ExactSizeIterator for HexT

impl<T: Iterator<Item = [u8; 2]> + FusedIterator> FusedIterator for HexToBytesIter<T> {}

#[cfg(any(feature = "std", feature = "core2"))]
#[cfg(feature = "std")]
impl<T: Iterator<Item = [u8; 2]> + FusedIterator> io::Read for HexToBytesIter<T> {
#[inline]
fn read(&mut self, buf: &mut [u8]) -> io::Result<usize> {
Expand Down

0 comments on commit e2fb576

Please sign in to comment.