Giri Priyadarshan 17a3ad9620
tonic gRPC example (#659)
* tonic gRPC example

* minor change to client output

Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
2022-04-05 20:35:33 +08:00

33 lines
714 B
TOML

[package]
name = "tonic_grpc_example"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[workspace]
members = [".", "entity", "migration"]
[dependencies]
tonic = "0.7"
tokio = { version = "1.17", features = ["macros", "rt-multi-thread", "full"] }
entity = { path = "entity" }
migration = { path = "migration" }
sea-orm = { version = "0.7.1", features = [ "sqlx-postgres", "runtime-tokio-rustls", "macros" ], default-features = false }
prost = "0.10.0"
serde = "1.0"
[lib]
path = "./src/lib.rs"
[[bin]]
name="server"
path="./src/server.rs"
[[bin]]
name="client"
path="./src/client.rs"
[build-dependencies]
tonic-build = "0.7"