From d2e04f49d0d5b48cdfdd9a389db4d72baeab34f9 Mon Sep 17 00:00:00 2001 From: daimond113 <72147841+daimond113@users.noreply.github.com> Date: Mon, 14 Oct 2024 13:21:09 +0200 Subject: [PATCH] feat(registry): return package dependencies --- registry/src/endpoints/package_version.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/registry/src/endpoints/package_version.rs b/registry/src/endpoints/package_version.rs index cefe7dc..fea4db0 100644 --- a/registry/src/endpoints/package_version.rs +++ b/registry/src/endpoints/package_version.rs @@ -162,6 +162,7 @@ pub async fn get_package_version( let mut value = serde_json::to_value(response)?; value["docs"] = serde_json::to_value(entry.docs.clone())?; + value["dependencies"] = serde_json::to_value(entry.dependencies.clone())?; Ok(HttpResponse::Ok().json(value)) }