diff --git a/Cargo.toml b/Cargo.toml index 6f89946..6cb0070 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,8 @@ repository = "https://github.com/rust-lang/rustdoc-types" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -serde = {version="1", features=["derive"]} +serde = {version="1"} +serde_derive = {version="1"} rustc-hash = {version="2", optional=true} [features] diff --git a/src/lib.rs b/src/lib.rs index 34b1773..e5df642 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -21,7 +21,7 @@ use std::path::PathBuf; #[cfg(feature = "rustc-hash")] use rustc_hash::FxHashMap as HashMap; -use serde::{Deserialize, Serialize}; +use serde_derive::{Deserialize, Serialize}; /// The version of JSON output that this crate represents.