mirror of
https://github.com/serde-rs/json.git
synced 2026-03-13 17:57:45 +00:00
Copy no-std note to rustdoc
This commit is contained in:
parent
dca5037ee6
commit
af4e6a1e91
13
src/lib.rs
13
src/lib.rs
@ -278,8 +278,17 @@
|
||||
//!
|
||||
//! # No-std support
|
||||
//!
|
||||
//! This crate currently requires the Rust standard library. For JSON support in
|
||||
//! Serde without a standard library, please see the [`serde-json-core`] crate.
|
||||
//! 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:
|
||||
//!
|
||||
//! ```toml
|
||||
//! [dependencies]
|
||||
//! serde_json = { version = "1.0", default-features = false, features = ["alloc"] }
|
||||
//! ```
|
||||
//!
|
||||
//! For JSON support in Serde without a memory allocator, please see the
|
||||
//! [`serde-json-core`] crate.
|
||||
//!
|
||||
//! [value]: https://docs.serde.rs/serde_json/value/enum.Value.html
|
||||
//! [from_str]: https://docs.serde.rs/serde_json/de/fn.from_str.html
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user