File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -15,11 +15,14 @@ graph. That means if any other crate you depend on has not opted out of Serde's
1515default features, you will build Serde with the std feature enabled whether or
1616not your direct dependency on Serde has ` default-features = false ` .
1717
18- In particular, a dependency on ` serde_json ` always needs Serde built with std.
19- If you need JSON support without a standard library, please use
20- [ ` serde-json-core ` ] instead of ` serde_json ` .
18+ For example, if you are using ` serde_json ` , its equivalent enabled-by-default
19+ ` "std" ` would also need to be disabled.
2120
22- [ `serde-json-core` ] : https://crates.io/crates/serde-json-core
21+ ``` toml
22+ [dependencies ]
23+ serde = { version = " 1.0" , default-features = false }
24+ serde_json = { version = " 1.0" , default-features = false , features = [" alloc" ] }
25+ ```
2326
2427### Derive
2528
You can’t perform that action at this time.
0 commit comments