Skip to content

Commit

Permalink
refactor: inline quicksink crate
Browse files Browse the repository at this point in the history
Adds the quicksink crate, which is offered under the MIT or Apache 2 license, as a module. This enables maintenance since quicksink itself has been archived for a year in a half.

Resolves #4705.

Pull-Request: #4711.
  • Loading branch information
kayabaNerve authored Oct 24, 2023
1 parent 70a8a52 commit 2711106
Show file tree
Hide file tree
Showing 5 changed files with 373 additions and 39 deletions.
57 changes: 20 additions & 37 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion transports/websocket/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ libp2p-core = { workspace = true }
libp2p-identity = { workspace = true }
log = "0.4.20"
parking_lot = "0.12.0"
quicksink = "0.1"
pin-project-lite = "0.2.13"
rw-stream-sink = { workspace = true }
soketto = "0.7.0"
url = "2.4"
Expand Down
2 changes: 1 addition & 1 deletion transports/websocket/src/framed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.

use crate::{error::Error, tls};
use crate::{error::Error, quicksink, tls};
use either::Either;
use futures::{future::BoxFuture, prelude::*, ready, stream::BoxStream};
use futures_rustls::{client, rustls, server};
Expand Down
1 change: 1 addition & 0 deletions transports/websocket/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

pub mod error;
pub mod framed;
mod quicksink;
pub mod tls;

use error::Error;
Expand Down
Loading

0 comments on commit 2711106

Please sign in to comment.