Skip to content

Commit

Permalink
Merge pull request #626 from blockscout/lok52/refactor-visualizer
Browse files Browse the repository at this point in the history
Refactor visualizer service
  • Loading branch information
lok52 authored Oct 11, 2023
2 parents edb610b + 69e7567 commit 00692ca
Show file tree
Hide file tree
Showing 30 changed files with 335 additions and 429 deletions.
178 changes: 117 additions & 61 deletions visualizer/Cargo.lock

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

3 changes: 2 additions & 1 deletion visualizer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
resolver = "2"
members = [
"visualizer",
"visualizer-server"
"visualizer-server",
"visualizer-proto"
]
20 changes: 20 additions & 0 deletions visualizer/visualizer-proto/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[package]
name = "visualizer-proto"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
actix-web = "4"
actix-prost = { git = "https://github.com/blockscout/actix-prost" }
actix-prost-macros = { git = "https://github.com/blockscout/actix-prost" }
prost = "0.11"
serde = { version = "1", features = ["derive"] }
serde_with = { version = "2.0", features = ["hex", "base64"] }
tonic = "0.8"

[build-dependencies]
actix-prost-build = { git = "https://github.com/blockscout/actix-prost" }
tonic-build = "0.8"
prost-build = "0.11"
File renamed without changes.
15 changes: 15 additions & 0 deletions visualizer/visualizer-proto/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#![allow(clippy::derive_partial_eq_without_eq)]

pub mod blockscout {
pub mod visualizer {
pub mod v1 {
include!(concat!(env!("OUT_DIR"), "/blockscout.visualizer.v1.rs"));
}
}
}

pub mod google {
pub mod protobuf {
include!(concat!(env!("OUT_DIR"), "/google.protobuf.rs"));
}
}
Loading

0 comments on commit 00692ca

Please sign in to comment.