Skip to content

Commit

Permalink
rename crate in favor of common prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
bragov4ik committed Aug 16, 2024
1 parent de2e18e commit eeedcbc
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion libs/blockscout-endpoints/health/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "blockscout-health-endpoint"
name = "blockscout-endpoint-health"
version = "0.1.0"
description = "Configuration tools for compiling health endpoint"
license = "MIT"
Expand Down
4 changes: 2 additions & 2 deletions stats/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion stats/stats-proto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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-health-endpoint = { path = "../../libs/blockscout-endpoints/health" }
blockscout-endpoint-health = { path = "../../libs/blockscout-endpoints/health" }
6 changes: 3 additions & 3 deletions stats/stats-proto/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ fn compile(
.field_attribute(".blockscout.stats.v1.Point.is_approximate", "#[serde(skip_serializing_if = \"std::ops::Not::not\")]")
.field_attribute(".blockscout.stats.v1.Point.is_approximate", "#[serde(default)]")
.field_attribute(".blockscout.stats.v1.GetLineChartRequest.resolution", "#[serde(default)]");
blockscout_health_endpoint::add_to_compile_config(&mut config);
blockscout_endpoint_health::add_to_compile_config(&mut config);

config.compile_protos(protos, includes)?;
Ok(())
Expand All @@ -46,15 +46,15 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
// We need to rebuild proto lib only if any of proto definitions
// (or corresponding http mapping) has been changed.
let mut proto_files_folders = ["proto/"].map(PathBuf::from).to_vec();
proto_files_folders.extend(blockscout_health_endpoint::includes(swagger_crate_folder));
proto_files_folders.extend(blockscout_endpoint_health::includes(swagger_crate_folder));
let proto_files_folders = vec_path_buf_to_string(proto_files_folders);

for folder in &proto_files_folders {
println!("cargo:rerun-if-changed={folder}/");
}

let mut protos = ["proto/stats.proto"].map(PathBuf::from).to_vec();
protos.extend(blockscout_health_endpoint::proto_files(
protos.extend(blockscout_endpoint_health::proto_files(
swagger_crate_folder,
));
let protos = vec_path_buf_to_string(protos);
Expand Down

0 comments on commit eeedcbc

Please sign in to comment.