diff options
author | Sam Scott <sam@osohq.com> | 2022-03-05 16:39:51 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-05 17:39:51 -0500 |
commit | 58c1832578a103498b0120469b7a5d84833ad1b5 (patch) | |
tree | 5af2062e91bc3fd92f93a08b64744a1c60e2ee6f /src/lib.rs | |
parent | d4c2caa53736ada8cd78e256fb95019b79e74bf7 (diff) |
Add an `actix` feature to provide a nicer error message (#57)
* Add an `actix` feature to provide a nicer error message
for people migrating from <= 0.8
* Fix tests.
* Bump version in readme.
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -174,6 +174,19 @@ extern crate serde; #[cfg(any(feature = "actix4", feature = "actix3", feature = "actix2"))] pub mod actix; + +#[cfg(feature = "actix")] +compile_error!( + r#"The `actix` feature was removed in v0.9 due to the proliferation of actix versions. +You must now specify the desired actix version by number. + +E.g. + +serde_qs = { version = "0.9", features = ["actix4"] } + +"# +); + mod de; mod error; mod ser; |