mirror of
https://github.com/OMGeeky/tarpc.git
synced 2026-02-23 15:49:54 +01:00
Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
85a8f8fce7 | ||
|
|
9267daa409 | ||
|
|
a01ecd3314 | ||
|
|
dd662beb9b | ||
|
|
5857de5164 | ||
|
|
8cb6ff89cc |
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "tarpc"
|
name = "tarpc"
|
||||||
version = "0.7.1"
|
version = "0.7.2"
|
||||||
authors = ["Adam Wright <adam.austin.wright@gmail.com>", "Tim Kuehn <timothy.j.kuehn@gmail.com>"]
|
authors = ["Adam Wright <adam.austin.wright@gmail.com>", "Tim Kuehn <timothy.j.kuehn@gmail.com>"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
documentation = "https://docs.rs/tarpc"
|
documentation = "https://docs.rs/tarpc"
|
||||||
@@ -26,7 +26,7 @@ net2 = "0.2"
|
|||||||
num_cpus = "1.0"
|
num_cpus = "1.0"
|
||||||
serde = "0.9"
|
serde = "0.9"
|
||||||
serde_derive = "0.9"
|
serde_derive = "0.9"
|
||||||
tarpc-plugins = { path = "src/plugins", version = "0.1" }
|
tarpc-plugins = { path = "src/plugins", version = "0.1.1" }
|
||||||
thread-pool = "0.1.1"
|
thread-pool = "0.1.1"
|
||||||
tokio-core = "0.1.6"
|
tokio-core = "0.1.6"
|
||||||
tokio-io = "0.1"
|
tokio-io = "0.1"
|
||||||
|
|||||||
@@ -37,8 +37,8 @@ arguments to tarpc fns.
|
|||||||
Add to your `Cargo.toml` dependencies:
|
Add to your `Cargo.toml` dependencies:
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
tarpc = { git = "https://github.com/google/tarpc" }
|
tarpc = "0.7.2"
|
||||||
tarpc-plugins = { git = "https://github.com/google/tarpc" }
|
tarpc-plugins = "0.1.1"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Example: Sync
|
## Example: Sync
|
||||||
@@ -270,7 +270,7 @@ and the following future-based trait:
|
|||||||
|
|
||||||
```rust,ignore
|
```rust,ignore
|
||||||
trait FutureService {
|
trait FutureService {
|
||||||
type HelloFut = IntoFuture<String, Message>;
|
type HelloFut: IntoFuture<String, Message>;
|
||||||
|
|
||||||
fn hello(&mut self, name: String) -> Self::HelloFut;
|
fn hello(&mut self, name: String) -> Self::HelloFut;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "tarpc-plugins"
|
name = "tarpc-plugins"
|
||||||
version = "0.1.0"
|
version = "0.1.1"
|
||||||
authors = ["Adam Wright <adam.austin.wright@gmail.com>", "Tim Kuehn <timothy.j.kuehn@gmail.com>"]
|
authors = ["Adam Wright <adam.austin.wright@gmail.com>", "Tim Kuehn <timothy.j.kuehn@gmail.com>"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
documentation = "https://docs.rs/tarpc"
|
documentation = "https://docs.rs/tarpc"
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ fn snake_to_camel(cx: &mut ExtCtxt, sp: Span, tts: &[TokenTree]) -> Box<MacResul
|
|||||||
// The `expand_expr` method is called so that any macro calls in the
|
// The `expand_expr` method is called so that any macro calls in the
|
||||||
// parsed expression are expanded.
|
// parsed expression are expanded.
|
||||||
|
|
||||||
let mut item = match parser.parse_trait_item() {
|
let mut item = match parser.parse_trait_item(&mut false) {
|
||||||
Ok(s) => s,
|
Ok(s) => s,
|
||||||
Err(mut diagnostic) => {
|
Err(mut diagnostic) => {
|
||||||
diagnostic.emit();
|
diagnostic.emit();
|
||||||
@@ -87,7 +87,7 @@ fn impl_snake_to_camel(cx: &mut ExtCtxt, sp: Span, tts: &[TokenTree]) -> Box<Mac
|
|||||||
// The `expand_expr` method is called so that any macro calls in the
|
// The `expand_expr` method is called so that any macro calls in the
|
||||||
// parsed expression are expanded.
|
// parsed expression are expanded.
|
||||||
|
|
||||||
let mut item = match parser.parse_impl_item() {
|
let mut item = match parser.parse_impl_item(&mut false) {
|
||||||
Ok(s) => s,
|
Ok(s) => s,
|
||||||
Err(mut diagnostic) => {
|
Err(mut diagnostic) => {
|
||||||
diagnostic.emit();
|
diagnostic.emit();
|
||||||
|
|||||||
Reference in New Issue
Block a user