diff --git a/Cargo.toml b/Cargo.toml index 0d7454f..a62c919 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -203,13 +203,14 @@ path = "examples/quic/client.rs" name = "quic_server" path = "examples/quic/server.rs" -[[example]] -name = "grpc-client" -path = "examples/grpc_poem/helloworld/src/client.rs" - -[[example]] -name = "grpc-server" -path = "examples/grpc_poem/helloworld/src/server.rs" -[[example]] -name = "grpc-jsoncodec-server" -path = "examples/grpc_poem/jsoncodec/src/server.rs" \ No newline at end of file +# please uncomment for grpc +# [[example]] +# name = "grpc-client" +# path = "examples/grpc_poem/helloworld/src/client.rs" + +# [[example]] +# name = "grpc-server" +# path = "examples/grpc_poem/helloworld/src/server.rs" +# [[example]] +# name = "grpc-jsoncodec-server" +# path = "examples/grpc_poem/jsoncodec/src/server.rs" \ No newline at end of file diff --git a/README.md b/README.md index 3ed28e2..ed390f1 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,8 @@ |zenoh_pub,zenoh_sub|pub sub|pub sub| |ice_pub,ice_sub|pub sub|pub sub| |discovery|iceoryx2 discovery| | -|grpc-client,grpc-server,grpc-jsoncodec-server|poem grpc examples ,with json codec | easy genarate proto | +|grpc-client,grpc-server,grpc-jsoncodec-server|poem grpc examples ,with json codec |⚠️ + // please uncomment for grpc | |ws_client,ws_server| | websocket | |quic_server,quic_client|quic,http3|quic,http3| ## vscode build @@ -77,4 +78,11 @@ but not c++ and python app,now are planning,waiting for release cargo run --example quic_server ./ cargo run --example quic_client https://localhost:4433/Cargo.toml -``` \ No newline at end of file +``` + +## grpc + +for building proto not work on github workflow, + +⚠️ // please uncomment for grpc + diff --git a/build.rs b/build.rs index 16deec7..490e929 100644 --- a/build.rs +++ b/build.rs @@ -1,10 +1,11 @@ -use std::io::Result; +// please uncomment for grpc +// use std::io::Result; -use poem_grpc_build::Config; +// use poem_grpc_build::Config; -fn main() -> Result<()> { - Config::new() - .codec("::poem_grpc::codec::JsonCodec") - .type_attribute(".", "#[derive(serde::Deserialize, serde::Serialize)]") - .compile(&["./proto/helloworld.proto"], &["./proto"]) -} +// fn main() -> Result<()> { +// Config::new() +// .codec("::poem_grpc::codec::JsonCodec") +// .type_attribute(".", "#[derive(serde::Deserialize, serde::Serialize)]") +// .compile(&["./proto/helloworld.proto"], &["./proto"]) +// }