From c1ed4d3441323b2155f5b54ae539e3120bbafb8c Mon Sep 17 00:00:00 2001 From: Kirill Ivanov Date: Fri, 16 Aug 2024 11:29:42 +0300 Subject: [PATCH] rename endpoints folder to be concise --- libs/Cargo.toml | 2 +- libs/{blockscout-endpoints => endpoints}/health/Cargo.toml | 0 .../health/proto/health.proto | 0 libs/{blockscout-endpoints => endpoints}/health/src/lib.rs | 0 stats/stats-proto/Cargo.toml | 2 +- stats/stats-proto/build.rs | 2 +- 6 files changed, 3 insertions(+), 3 deletions(-) rename libs/{blockscout-endpoints => endpoints}/health/Cargo.toml (100%) rename libs/{blockscout-endpoints => endpoints}/health/proto/health.proto (100%) rename libs/{blockscout-endpoints => endpoints}/health/src/lib.rs (100%) diff --git a/libs/Cargo.toml b/libs/Cargo.toml index 68c27dffa..a119d4888 100644 --- a/libs/Cargo.toml +++ b/libs/Cargo.toml @@ -4,7 +4,7 @@ members = [ "blockscout-auth", "blockscout-client/crate", "blockscout-db", - "blockscout-endpoints/health", + "endpoints/health", "blockscout-service-launcher", "display-bytes", "env-collector", diff --git a/libs/blockscout-endpoints/health/Cargo.toml b/libs/endpoints/health/Cargo.toml similarity index 100% rename from libs/blockscout-endpoints/health/Cargo.toml rename to libs/endpoints/health/Cargo.toml diff --git a/libs/blockscout-endpoints/health/proto/health.proto b/libs/endpoints/health/proto/health.proto similarity index 100% rename from libs/blockscout-endpoints/health/proto/health.proto rename to libs/endpoints/health/proto/health.proto diff --git a/libs/blockscout-endpoints/health/src/lib.rs b/libs/endpoints/health/src/lib.rs similarity index 100% rename from libs/blockscout-endpoints/health/src/lib.rs rename to libs/endpoints/health/src/lib.rs diff --git a/stats/stats-proto/Cargo.toml b/stats/stats-proto/Cargo.toml index 9a3ff4549..7870c5e47 100644 --- a/stats/stats-proto/Cargo.toml +++ b/stats/stats-proto/Cargo.toml @@ -20,4 +20,4 @@ serde_json = "1.0" actix-prost-build = { git = "https://github.com/blockscout/actix-prost" } tonic-build = "0.8" prost-build = "0.11" -blockscout-endpoint-health = { path = "../../libs/blockscout-endpoints/health" } +blockscout-endpoint-health = { path = "../../libs/endpoints/health" } diff --git a/stats/stats-proto/build.rs b/stats/stats-proto/build.rs index 15f4cb7c5..5239b54e5 100644 --- a/stats/stats-proto/build.rs +++ b/stats/stats-proto/build.rs @@ -41,7 +41,7 @@ fn vec_path_buf_to_string(v: Vec) -> Vec { } fn main() -> Result<(), Box> { - let swagger_crate_folder = Path::new("../../libs/blockscout-endpoints/health"); + let swagger_crate_folder = Path::new("../../libs/endpoints/health"); // We need to rebuild proto lib only if any of proto definitions // (or corresponding http mapping) has been changed.