From e70a1d21f5a50d44177850a9f768fb575ae1de36 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Wed, 27 Mar 2024 14:19:14 -0700 Subject: [PATCH] Document RustcEncodable/RustcDecodable --- src/rust-2024/prelude.md | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) 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}; +```