diff --git a/src/rust-2024/prelude.md b/src/rust-2024/prelude.md index b9979f0b..7a629e86 100644 --- a/src/rust-2024/prelude.md +++ b/src/rust-2024/prelude.md @@ -7,6 +7,7 @@ More information may be found in the tracking issue at ::poll(&core::pin::pin!(async {})); } ``` + +#### `RustcEncodable` and `RustcDecodable` + +It is strongly recommended that you migrate to a different serialization library if you are still using these. +However, these derive macros are still available in the standard library, they are just required to be imported from the older prelude now: + +```rust,edition2021 +use core::prelude::v1::{RustcDecodable, RustcEncodable}; +```