aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-12-04 20:40:26 -0500
committerJesse Luehrs <doy@tozt.net>2021-12-04 20:44:05 -0500
commitaee04ecc6705d86d5371bbb54b2dc43bbec0773c (patch)
treee14cd5e512b73cc088d2d2b8f97b3fad2ab40f59
parent57f245da290fee5a1cb2e9526fd30df3a2fb379d (diff)
downloadttyrec-aee04ecc6705d86d5371bbb54b2dc43bbec0773c.tar.gz
ttyrec-aee04ecc6705d86d5371bbb54b2dc43bbec0773c.zip
use futures-lite instead of futures
-rw-r--r--CHANGELOG.md6
-rw-r--r--Cargo.toml4
-rw-r--r--src/reader.rs6
-rw-r--r--src/writer.rs6
4 files changed, 14 insertions, 8 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 010449b..e2dc60c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,11 @@
# Changelog
+## [Unreleased]
+
+### Changed
+
+* moved to `futures_lite` instead of `futures`
+
## [0.3.0] - 2021-12-04
### Changed
diff --git a/Cargo.toml b/Cargo.toml
index d0a8022..48e8b7e 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -12,8 +12,8 @@ keywords = ["ttyrec"]
categories = ["parser-implementations"]
[dependencies]
-futures = { version = "0.3.18", optional = true }
+futures-lite = { version = "1.12.0", optional = true }
[features]
default = ["async"]
-async = ["futures"]
+async = ["futures-lite"]
diff --git a/src/reader.rs b/src/reader.rs
index 240c78e..4939eb9 100644
--- a/src/reader.rs
+++ b/src/reader.rs
@@ -1,13 +1,13 @@
-use futures::io::AsyncReadExt as _;
+use futures_lite::io::AsyncReadExt as _;
/// Reads ttyrec frames from a [`futures::io::AsyncRead`] instance.
-pub struct Reader<T: futures::io::AsyncRead> {
+pub struct Reader<T: futures_lite::io::AsyncRead> {
input: T,
parser: crate::Parser,
buf: [u8; 4096],
}
-impl<T: futures::io::AsyncRead + std::marker::Unpin + Send> Reader<T> {
+impl<T: futures_lite::io::AsyncRead + std::marker::Unpin + Send> Reader<T> {
/// Creates a new [`Reader`](Self) from a [`futures::io::AsyncRead`]
/// instance.
pub fn new(input: T) -> Self {
diff --git a/src/writer.rs b/src/writer.rs
index f161df0..0a94586 100644
--- a/src/writer.rs
+++ b/src/writer.rs
@@ -1,12 +1,12 @@
-use futures::io::AsyncWriteExt as _;
+use futures_lite::io::AsyncWriteExt as _;
/// Writes ttyrec frames to a [`futures::io::AsyncWrite`] instance.
-pub struct Writer<T: futures::io::AsyncWrite> {
+pub struct Writer<T: futures_lite::io::AsyncWrite> {
output: T,
creator: crate::Creator,
}
-impl<T: futures::io::AsyncWrite + std::marker::Unpin + Send> Writer<T> {
+impl<T: futures_lite::io::AsyncWrite + std::marker::Unpin + Send> Writer<T> {
/// Creates a new [`Writer`](Self) from a [`futures::io::AsyncWrite`]
/// instance.
pub fn new(output: T) -> Self {