Skip to content

Commit

Permalink
Remove tokio-stream dependency. (#290)
Browse files Browse the repository at this point in the history
This PR removes the tokio-stream dependency and replaces its use with futures-util.
  • Loading branch information
partim authored May 29, 2024
1 parent aa722a3 commit e70ec58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ ring = { version = "0.17.6", optional = true }
serde = { version = "1.0.103", optional = true, features = [ "derive" ] }
serde_json = { version = "1.0.40", optional = true }
tokio = { version = "1.0", optional = true, features = ["io-util", "net", "rt", "sync", "time"] }
tokio-stream = { version = "0.1", optional = true }
uuid = "1.1"
untrusted = { version = "0.9", optional = true }

Expand All @@ -47,7 +46,7 @@ ca = [ "repository", "serde-support", "rrdp" ]
crypto = [ "bcder", "ring", "untrusted" ]
repository = [ "bcder", "crypto" ]
rrdp = [ "xml", "ring" ]
rtr = [ "futures-util", "tokio", "tokio-stream" ]
rtr = [ "futures-util", "tokio" ]
slurm = [ "rtr", "serde-support", "serde_json" ]

# Feature that provides compatibility with (technically incorrect) objects
Expand Down
2 changes: 1 addition & 1 deletion src/rtr/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ use std::io;
use futures_util::future;
use futures_util::pin_mut;
use futures_util::future::Either;
use futures_util::stream::{Stream, StreamExt};
use log::debug;
use tokio::io::{AsyncRead, AsyncWrite, AsyncWriteExt};
use tokio::sync::broadcast;
use tokio::task::spawn;
use tokio_stream::{Stream, StreamExt};
use super::pdu;
use super::payload::{Action, PayloadRef, Timing};
use super::state::State;
Expand Down

0 comments on commit e70ec58

Please sign in to comment.