1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-24 07:53:00 +01:00

prepare actix-web-actors release

This commit is contained in:
Nikolay Kim 2019-06-28 10:54:23 +06:00
parent 768859513a
commit 596483ff55
3 changed files with 14 additions and 6 deletions

View File

@ -1,5 +1,9 @@
# Changes # Changes
## [1.0.1] - 2019-06-28
* Allow to use custom ws codec with `WebsocketContext` #925
## [1.0.0] - 2019-05-29 ## [1.0.0] - 2019-05-29
* Update actix-http and actix-web * Update actix-http and actix-web

View File

@ -1,6 +1,6 @@
[package] [package]
name = "actix-web-actors" name = "actix-web-actors"
version = "1.0.0" version = "1.0.1"
authors = ["Nikolay Kim <fafhrd91@gmail.com>"] authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
description = "Actix actors support for actix web framework." description = "Actix actors support for actix web framework."
readme = "README.md" readme = "README.md"
@ -19,7 +19,7 @@ path = "src/lib.rs"
[dependencies] [dependencies]
actix = "0.8.3" actix = "0.8.3"
actix-web = "1.0.0" actix-web = "1.0.2"
actix-http = "0.2.4" actix-http = "0.2.4"
actix-codec = "0.1.2" actix-codec = "0.1.2"
bytes = "0.4" bytes = "0.4"

View File

@ -184,10 +184,14 @@ where
#[inline] #[inline]
/// Create a new Websocket context from a request, an actor, and a codec /// Create a new Websocket context from a request, an actor, and a codec
pub fn with_codec<S>(actor: A, stream: S, codec: Codec) -> impl Stream<Item = Bytes, Error = Error> pub fn with_codec<S>(
where actor: A,
A: StreamHandler<Message, ProtocolError>, stream: S,
S: Stream<Item = Bytes, Error = PayloadError> + 'static, codec: Codec,
) -> impl Stream<Item = Bytes, Error = Error>
where
A: StreamHandler<Message, ProtocolError>,
S: Stream<Item = Bytes, Error = PayloadError> + 'static,
{ {
let mb = Mailbox::default(); let mb = Mailbox::default();
let mut ctx = WebsocketContext { let mut ctx = WebsocketContext {