diff --git a/actix-utils/CHANGES.md b/actix-utils/CHANGES.md index a4f3e0a9..f1e1b05e 100644 --- a/actix-utils/CHANGES.md +++ b/actix-utils/CHANGES.md @@ -1,5 +1,14 @@ # Changes +## [0.4.3] - 2019-07-17 + +### Deprecated + +* Deprecate `CloneableService` as it is not safe and in general not very useful + +* Deprecate `FramedTransport` in favor of `actix-ioframe` + + ## [0.4.2] - 2019-06-26 ### Fixed diff --git a/actix-utils/Cargo.toml b/actix-utils/Cargo.toml index bfd03281..230c991b 100644 --- a/actix-utils/Cargo.toml +++ b/actix-utils/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "actix-utils" -version = "0.4.2" +version = "0.4.3" authors = ["Nikolay Kim "] description = "Actix utils - various actix net related services" keywords = ["network", "framework", "async", "futures"] diff --git a/actix-utils/src/cloneable.rs b/actix-utils/src/cloneable.rs index 1b2d2578..2ad9ac8f 100644 --- a/actix-utils/src/cloneable.rs +++ b/actix-utils/src/cloneable.rs @@ -1,3 +1,4 @@ +#![allow(deprecated)] use std::marker::PhantomData; use std::rc::Rc; @@ -6,6 +7,8 @@ use futures::Poll; use super::cell::Cell; +#[doc(hidden)] +#[deprecated(since = "0.4.3", note = "support will be removed in actix-utils 0.4.5")] /// Service that allows to turn non-clone service to a service with `Clone` impl pub struct CloneableService { service: Cell, diff --git a/actix-utils/src/framed.rs b/actix-utils/src/framed.rs index 7be2c750..5eb472f7 100644 --- a/actix-utils/src/framed.rs +++ b/actix-utils/src/framed.rs @@ -1,3 +1,4 @@ +#![allow(deprecated)] //! Framed dispatcher service and related utilities use std::collections::VecDeque; use std::{fmt, mem}; @@ -14,6 +15,8 @@ use crate::cell::Cell; type Request = ::Item; type Response = ::Item; +#[doc(hidden)] +#[deprecated(since = "0.4.3", note = "support will be removed in actix-utils 0.4.5")] /// Framed transport errors pub enum FramedTransportError { Service(E), @@ -63,11 +66,18 @@ where } } +#[doc(hidden)] +#[deprecated(since = "0.4.3", note = "support will be removed in actix-utils 0.4.5")] pub enum FramedMessage { Message(T), Close, } +#[doc(hidden)] +#[deprecated( + since = "0.4.3", + note = "please use `actix_ioframe` instead. support will be removed in actix-utils 0.4.5" +)] /// FramedTransport - is a future that reads frames from Framed object /// and pass then to the service. pub struct FramedTransport