diff --git a/dev-rust/serde_json/files/serde_json-1.0.41-unused-deps.patch b/dev-rust/serde_json/files/serde_json-1.0.41-unused-deps.patch
new file mode 100644
index 0000000..7f7783f
--- /dev/null
+++ b/dev-rust/serde_json/files/serde_json-1.0.41-unused-deps.patch
@@ -0,0 +1,28 @@
+diff --git a/Cargo.toml.old b/Cargo.toml
+index 5ce911b..46aba1c 100644
+--- a/Cargo.toml.old
++++ b/Cargo.toml
+@@ -39,23 +39,6 @@ version = "1.0"
+
+ [dependencies.serde]
+ version = "1.0.60"
+-[dev-dependencies.automod]
+-version = "0.1"
+-
+-[dev-dependencies.rustversion]
+-version = "0.1"
+-
+-[dev-dependencies.serde_bytes]
+-version = "0.11"
+-
+-[dev-dependencies.serde_derive]
+-version = "1.0"
+-
+-[dev-dependencies.serde_stacker]
+-version = "0.1"
+-
+-[dev-dependencies.trybuild]
+-version = "1.0"
+
+ [features]
+ arbitrary_precision = []
diff --git a/dev-rust/serde_json/metadata.xml b/dev-rust/serde_json/metadata.xml
index 55aa7c2..6e8db6a 100644
--- a/dev-rust/serde_json/metadata.xml
+++ b/dev-rust/serde_json/metadata.xml
@@ -6,4 +6,7 @@
+
diff --git a/dev-rust/serde_json/serde_json-1.0.41.ebuild b/dev-rust/serde_json/serde_json-1.0.41.ebuild
index 39ada37..f30010c 100644
--- a/dev-rust/serde_json/serde_json-1.0.41.ebuild
+++ b/dev-rust/serde_json/serde_json-1.0.41.ebuild
@@ -11,10 +11,19 @@ SRC_URI="https://crates.io/api/v1/crates/${PN}/${PV}/download -> ${P}.crate"
LICENSE="|| ( MIT Apache-2.0 )"
KEYWORDS="~amd64 ~x86"
-IUSE="test"
-RESTRICT="test"
+IUSE="indexmap test"
+
+F_INDEXMAP="
+ =dev-rust/indexmap-1*:=
+"
BDEPEND="
( =dev-rust/itoa-0.4*:= >=dev-rust/itoa-0.4.3 )
=dev-rust/ryu-1*:=
( =dev-rust/serde-1*:= >=dev-rust/serde-1.0.60 )
+ test? (
+ ${F_INDEXMAP}
+ )
"
+PATCHES=(
+ "${FILESDIR}/${P}-unused-deps.patch"
+)