diff --git a/MIGRATION.md b/MIGRATION.md index aef382a21..86721e0eb 100644 --- a/MIGRATION.md +++ b/MIGRATION.md @@ -3,6 +3,8 @@ * Setting a cookie's SameSite property, explicitly, to `SameSite::None` will now result in `SameSite=None` being sent with the response Set-Cookie header. To create a cookie without a SameSite attribute, remove any calls setting same_site. +* actix-http support for Actors messages was moved to actix-http crate and is enabled + with feature `actors` ## 2.0.0 diff --git a/actix-http/CHANGES.md b/actix-http/CHANGES.md index 4e8d7fd42..f2ef217c1 100644 --- a/actix-http/CHANGES.md +++ b/actix-http/CHANGES.md @@ -6,6 +6,8 @@ * Update the `time` dependency to 0.2.7 +* Moved actors messages support from actix crate, enabled with feature `actors`. + ### Fixed * Allow `SameSite=None` cookies to be sent in a response. diff --git a/actix-http/Cargo.toml b/actix-http/Cargo.toml index 2c3f9ef81..da3d8a075 100644 --- a/actix-http/Cargo.toml +++ b/actix-http/Cargo.toml @@ -15,7 +15,7 @@ license = "MIT/Apache-2.0" edition = "2018" [package.metadata.docs.rs] -features = ["openssl", "rustls", "failure", "compress", "secure-cookies","actix"] +features = ["openssl", "rustls", "failure", "compress", "secure-cookies","actors"] [lib] name = "actix_http" diff --git a/actix-http/src/error.rs b/actix-http/src/error.rs index 35999671b..4b8f13cf0 100644 --- a/actix-http/src/error.rs +++ b/actix-http/src/error.rs @@ -953,10 +953,12 @@ impl ResponseError for fail_ure::Error {} #[cfg(feature = "actors")] /// `InternalServerError` for `actix::MailboxError` +/// This is supported on feature=`actors` only impl ResponseError for actix::MailboxError {} #[cfg(feature = "actors")] /// `InternalServerError` for `actix::ResolverError` +/// This is supported on feature=`actors` only impl ResponseError for actix::actors::resolver::ResolverError {} #[cfg(test)]