File tree Expand file tree Collapse file tree 7 files changed +33
-29
lines changed Expand file tree Collapse file tree 7 files changed +33
-29
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,8 @@ tokio-stream = {version = "0.1", features = ["net"]}
3131tokio-tungstenite = " 0.27"
3232tokio_wasi = {version = " 1" , features = [" full" ]}
3333tonic = " 0.14"
34- tonic-build = " 0.14"
34+ tonic-prost = " 0.14"
35+ tonic-prost-build = " 0.14"
3536tower = " 0.5"
3637tracing-subscriber = " 0.3"
3738uuid = {version = " 1" , features = [" serde" , " v4" ]}
Original file line number Diff line number Diff line change 11[package ]
2- name = " example-grpc"
3- edition.workspace = true
42authors.workspace = true
3+ edition.workspace = true
54homepage.workspace = true
65license.workspace = true
6+ name = " example-grpc"
7+ publish = false
78readme.workspace = true
89repository.workspace = true
910version.workspace = true
10- publish = false
1111
1212[[bin ]]
1313name = " example-grpc-client"
1414path = " src/client.rs"
1515
1616[dependencies ]
17- tonic.workspace = true
18- prost.workspace = true
19- tokio = { workspace = true , features = [" macros" , " rt-multi-thread" ] }
20- silent = { path = " ../../silent" , features = [" grpc" ] }
2117async-trait.workspace = true
18+ prost.workspace = true
19+ silent = {path = " ../../silent" , features = [" grpc" ]}
20+ tokio = {workspace = true , features = [" macros" , " rt-multi-thread" ]}
21+ tonic-prost.workspace = true
22+ tonic.workspace = true
2223
2324[build-dependencies ]
24- tonic-build = { version = " 0.14 " }
25+ tonic-prost- build.workspace = true
Original file line number Diff line number Diff line change 11fn main ( ) {
2- tonic_build :: configure ( )
2+ tonic_prost_build :: configure ( )
33 . compile_protos ( & [ "proto/hello_world.proto" ] , & [ "/proto" ] )
44 . unwrap ( ) ;
55}
Original file line number Diff line number Diff line change 11[package ]
2- name = " example-grpc-h2c"
3- edition.workspace = true
42authors.workspace = true
3+ edition.workspace = true
54homepage.workspace = true
65license.workspace = true
6+ name = " example-grpc-h2c"
7+ publish = false
78readme.workspace = true
89repository.workspace = true
910version.workspace = true
10- publish = false
1111
1212[[bin ]]
1313name = " example-grpc-client"
1414path = " src/client.rs"
1515
1616[dependencies ]
17- tonic.workspace = true
18- prost.workspace = true
19- tokio = { workspace = true , features = [" macros" , " rt-multi-thread" ] }
20- silent = { path = " ../../silent" , features = [" grpc" ] }
2117async-trait.workspace = true
2218http.workspace = true
2319hyper-util.workspace = true
2420hyper.workspace = true
21+ prost.workspace = true
22+ silent = {path = " ../../silent" , features = [" grpc" ]}
23+ tokio = {workspace = true , features = [" macros" , " rt-multi-thread" ]}
24+ tonic-prost.workspace = true
25+ tonic.workspace = true
2526tower.workspace = true
2627
2728[build-dependencies ]
28- tonic-build.workspace = true
29+ tonic-prost- build.workspace = true
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ use std::{env, path::PathBuf};
33fn main ( ) {
44 let out_dir = PathBuf :: from ( env:: var ( "OUT_DIR" ) . unwrap ( ) ) ;
55
6- tonic_build :: configure ( )
6+ tonic_prost_build :: configure ( )
77 . file_descriptor_set_path ( out_dir. join ( "hello_world_descriptor.bin" ) )
88 . compile_protos ( & [ "proto/hello_world.proto" ] , & [ "/proto" ] )
99 . unwrap ( ) ;
Original file line number Diff line number Diff line change 11[package ]
2- name = " example-grpc-streaming"
3- edition.workspace = true
42authors.workspace = true
3+ edition.workspace = true
54homepage.workspace = true
65license.workspace = true
6+ name = " example-grpc-streaming"
7+ publish = false
78readme.workspace = true
89repository.workspace = true
910version.workspace = true
10- publish = false
1111
1212[[bin ]]
1313name = " example-grpc-client"
1414path = " src/client.rs"
1515
1616[dependencies ]
17- tonic.workspace = true
18- prost.workspace = true
19- tokio = { workspace = true , features = [" macros" , " rt-multi-thread" ] }
20- silent = { path = " ../../silent" , features = [" grpc" ] }
2117async-trait.workspace = true
22- tokio-stream.workspace = true
2318h2.workspace = true
19+ prost.workspace = true
20+ silent = {path = " ../../silent" , features = [" grpc" ]}
21+ tokio = {workspace = true , features = [" macros" , " rt-multi-thread" ]}
22+ tokio-stream.workspace = true
23+ tonic-prost.workspace = true
24+ tonic.workspace = true
2425
2526[build-dependencies ]
26- tonic-build = { version = " 0.14 " }
27+ tonic-prost- build.workspace = true
Original file line number Diff line number Diff line change 11fn main ( ) {
2- tonic_build :: configure ( )
2+ tonic_prost_build :: configure ( )
33 . compile_protos ( & [ "proto/echo.proto" ] , & [ "/proto" ] )
44 . unwrap ( ) ;
55}
You can’t perform that action at this time.
0 commit comments