This is an automated email from the ASF dual-hosted git repository. liujun pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/dubbo-rust.git
commit b630a29995480e5537e7223cfe53d4360772cefb Author: johankoi <[email protected]> AuthorDate: Mon Apr 25 15:35:30 2022 +0800 Mod: empty examples src Signed-off-by: johankoi <[email protected]> --- examples/Cargo.toml | 38 ------------------------------ examples/build.rs | 0 examples/proto/helloworld/helloworld.proto | 37 ----------------------------- examples/src/grpc-web/client.rs | 0 examples/src/grpc-web/server.rs | 0 examples/src/helloworld/client.rs | 0 examples/src/helloworld/server.rs | 0 examples/src/helloworld/server_blocking.rs | 0 8 files changed, 75 deletions(-) diff --git a/examples/Cargo.toml b/examples/Cargo.toml deleted file mode 100644 index a477bf0..0000000 --- a/examples/Cargo.toml +++ /dev/null @@ -1,38 +0,0 @@ -[package] -name = "examples" -publish = false -version = "0.1.0" -edition = "2022" - -[[bin]] -name = "helloworld-server" -path = "src/helloworld/server.rs" - -[[bin]] -name = "helloworld-client" -path = "src/helloworld/client.rs" - -[[bin]] -name = "grpc-web-server" -path = "src/grpc-web/server.rs" - -[[bin]] -name = "grpc-web-client" -path = "src/grpc-web/client.rs" - -[dependencies] -async-stream = "0.3" -futures = { version = "0.3", default-features = false, features = ["alloc"] } -prost = "0.10" -tokio = { version = "1.0", features = [ "rt-multi-thread", "time", "fs", "macros", "net",] } -tokio-stream = { version = "0.1", features = ["net"] } -# Required for wellknown types -prost-types = "0.10" -# grpc-web example -bytes = "1" -tokio-rustls = "*" -hyper-rustls = { version = "0.23", features = ["http2"] } -rustls-pemfile = "*" -tower-http = { version = "0.2", features = ["add-extension"] } - -[build-dependencies] diff --git a/examples/build.rs b/examples/build.rs deleted file mode 100644 index e69de29..0000000 diff --git a/examples/proto/helloworld/helloworld.proto b/examples/proto/helloworld/helloworld.proto deleted file mode 100644 index 8de5d08..0000000 --- a/examples/proto/helloworld/helloworld.proto +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright 2015 gRPC authors. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -option java_multiple_files = true; -option java_package = "io.grpc.examples.helloworld"; -option java_outer_classname = "HelloWorldProto"; - -package helloworld; - -// The greeting service definition. -service Greeter { - // Sends a greeting - rpc SayHello (HelloRequest) returns (HelloReply) {} -} - -// The request message containing the user's name. -message HelloRequest { - string name = 1; -} - -// The response message containing the greetings -message HelloReply { - string message = 1; -} \ No newline at end of file diff --git a/examples/src/grpc-web/client.rs b/examples/src/grpc-web/client.rs deleted file mode 100644 index e69de29..0000000 diff --git a/examples/src/grpc-web/server.rs b/examples/src/grpc-web/server.rs deleted file mode 100644 index e69de29..0000000 diff --git a/examples/src/helloworld/client.rs b/examples/src/helloworld/client.rs deleted file mode 100644 index e69de29..0000000 diff --git a/examples/src/helloworld/server.rs b/examples/src/helloworld/server.rs deleted file mode 100644 index e69de29..0000000 diff --git a/examples/src/helloworld/server_blocking.rs b/examples/src/helloworld/server_blocking.rs deleted file mode 100644 index e69de29..0000000
