From 67ace1acf03ad947d18a31aabf887a5fb83154a1 Mon Sep 17 00:00:00 2001 From: Zakarum Date: Tue, 16 Jun 2020 20:25:39 +0300 Subject: [PATCH] Make "std" feature activate "std" feature in serde This enables serde crates themselves. Related cargo issue: https://github.com/rust-lang/cargo/issues/3494 --- Cargo.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 9e1426a..780c903 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,14 +12,14 @@ readme = "README.md" [features] unstable-doc = [] -std = [] +std = ["serde/std", "serde_json/std"] fs = ["std"] sync = ["spin"] fetch = ["js-sys", "web-sys/Response", "web-sys/Window", "wasm-bindgen", "wasm-bindgen-futures"] json-format = ["serde", "serde_json"] -yaml-format = ["serde", "serde_yaml"] -ron-format = ["serde", "ron"] +yaml-format = ["serde", "serde_yaml", "std"] +ron-format = ["serde", "ron", "std"] default = ["std", "sync"]