diff --git a/src/lib.rs b/src/lib.rs index 463a5a81b..89081ffbe 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -98,6 +98,8 @@ // irrelevant as this crate is developed out-of-tree. #![cfg_attr(backtrace_in_libstd, allow(warnings))] #![cfg_attr(not(feature = "std"), allow(dead_code))] +// We know this is deprecated, it's only here for back-compat reasons. +#![cfg_attr(feature = "rustc-serialize", allow(deprecated))] #[cfg(feature = "std")] #[macro_use]