e77e854d2e
- Add tonic/prost gRPC client connecting to music-agregator service - Add config.yaml for configurable server host/port - Add build.rs for proto compilation from music-agregator - Update Artist/Album models to match proto with MonitorState enum - Convert album list from GetArtists response - Fix album click selection with correct layout offsets - Improve monitor state icons for better visibility
18 lines
427 B
Rust
18 lines
427 B
Rust
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|
let proto_root = "../music-agregator/proto";
|
|
|
|
tonic_build::configure()
|
|
.build_server(false)
|
|
.build_client(true)
|
|
.out_dir("src/proto")
|
|
.compile_protos(
|
|
&[format!(
|
|
"{}/music_agregator/v1/music_agregator.proto",
|
|
proto_root
|
|
)],
|
|
&[proto_root],
|
|
)?;
|
|
|
|
Ok(())
|
|
}
|