Skip to content

Commit

Permalink
fix: Change dep to futures_io instead of futures
Browse files Browse the repository at this point in the history
  • Loading branch information
audunhalland committed Mar 24, 2024
1 parent 1c2cbd0 commit de3bef9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Output trait hierarchy (which allows safely mocking borrowed return values) rewritten to be more flexible and future-proof than previously ([#46](https://github.com/audunhalland/unimock/pull/46))
- `default_implementation` renamed to `applies_default_impl`.
### Added
- Mocks for `tokio-1` and `futures-0-3` async read/write traits ([#45](https://github.com/audunhalland/unimock/pull/45))
- Mocks for `tokio-1` and `futures-io-0-3` async read/write traits ([#45](https://github.com/audunhalland/unimock/pull/45))
### Fixed
- Fix `matching!` against references to number literals ([#42](https://github.com/audunhalland/unimock/pull/42))
- Borrows from function arguments can now be made without leaking memory ([#47](https://github.com/audunhalland/unimock/pull/47))
Expand Down
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ std = ["once_cell/std"]
spin-lock = ["dep:spin"]
mock-core = []
mock-std = ["std", "mock-core"]
mock-futures-0-3 = ["std", "dep:futures-0-3"]
mock-futures-io-0-3 = ["std", "dep:futures-io-0-3"]
mock-tokio-1 = ["std", "dep:tokio-1"]
nightly-tests = []
unstable-doc-cfg = []
Expand All @@ -31,7 +31,7 @@ once_cell = { version = "1.17", default-features = false }
polonius-the-crab = "0.4"
pretty_assertions = { version = "1.3", optional = true }
spin = { version = "0.9.8", optional = true }
futures-0-3 = { package = "futures", version = "0.3", optional = true }
futures-io-0-3 = { package = "futures-io", version = "0.3.30", optional = true }
tokio-1 = { package = "tokio", version = "1.36", default-features = false, optional = true }

[dev-dependencies]
Expand All @@ -45,7 +45,7 @@ rustversion = "1"
doctest = false

[package.metadata.docs.rs]
features = ["unstable-doc-cfg", "mock-core", "mock-std", "mock-futures-0-3", "mock-tokio-1"]
features = ["unstable-doc-cfg", "mock-core", "mock-std", "mock-futures-io-0-3", "mock-tokio-1"]

[workspace]
members = ["unimock_macros"]
4 changes: 2 additions & 2 deletions src/mock/futures_0_3.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
//! Mock APIs for `futures 0.3` traits
/// Mock APIs for `futures::io` traits
#[cfg(feature = "mock-futures-0-3")]
#[cfg(feature = "mock-futures-io-0-3")]
pub mod io {
use core::pin::Pin;
use core::task::{Context, Poll};
use std::io::{IoSlice, IoSliceMut};

use futures_0_3::io::{AsyncBufRead, AsyncRead, AsyncSeek, AsyncWrite, Error, SeekFrom};
use futures_io_0_3::{AsyncBufRead, AsyncRead, AsyncSeek, AsyncWrite, Error, SeekFrom};

use crate::unimock;

Expand Down

0 comments on commit de3bef9

Please sign in to comment.