From ab0f884fb63a20e7797501101351d8d9c6b25a1f Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Wed, 19 Oct 2022 14:31:50 -0700 Subject: [PATCH] Delete 1.36+ caveat from descriptions of alloc feature --- Cargo.toml | 1 - README.md | 4 ++-- src/lib.rs | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f92c786b5..5380001c1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -50,7 +50,6 @@ std = ["serde/std"] # Provide integration for heap-allocated collections without depending on the # rest of the Rust standard library. # NOTE: Disabling both `std` *and* `alloc` features is not supported yet. -# Available on Rust 1.36+. alloc = ["serde/alloc"] # Make serde_json::Map use a representation which maintains insertion order. diff --git a/README.md b/README.md index df58a47e4..2efdfd14d 100644 --- a/README.md +++ b/README.md @@ -350,8 +350,8 @@ closed without a response after some time. ## No-std support As long as there is a memory allocator, it is possible to use serde_json without -the rest of the Rust standard library. This is supported on Rust 1.36+. Disable -the default "std" feature and enable the "alloc" feature: +the rest of the Rust standard library. Disable the default "std" feature and +enable the "alloc" feature: ```toml [dependencies] diff --git a/src/lib.rs b/src/lib.rs index 3a1983c3f..f90889702 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -279,8 +279,8 @@ //! # No-std support //! //! As long as there is a memory allocator, it is possible to use serde_json -//! without the rest of the Rust standard library. This is supported on Rust -//! 1.36+. Disable the default "std" feature and enable the "alloc" feature: +//! without the rest of the Rust standard library. Disable the default "std" +//! feature and enable the "alloc" feature: //! //! ```toml //! [dependencies]