mirror of
https://github.com/OMGeeky/tarpc.git
synced 2025-12-30 08:08:58 +01:00
21 lines
549 B
Rust
21 lines
549 B
Rust
// Copyright 2018 Google LLC
|
|
//
|
|
// Use of this source code is governed by an MIT-style
|
|
// license that can be found in the LICENSE file or at
|
|
// https://opensource.org/licenses/MIT.
|
|
|
|
#![feature(
|
|
futures_api,
|
|
arbitrary_self_types,
|
|
await_macro,
|
|
async_await,
|
|
proc_macro_hygiene
|
|
)]
|
|
|
|
// This is the service definition. It looks a lot like a trait definition.
|
|
// It defines one RPC, hello, which takes one arg, name, and returns a String.
|
|
tarpc::service! {
|
|
/// Returns a greeting for name.
|
|
rpc hello(name: String) -> String;
|
|
}
|