Commit Graph

771 Commits

Author SHA1 Message Date
shaladdle
6f3b7dc13b Merge pull request #4 from tikue/deps-versions
Update dependency versions to not use *
2016-02-12 01:14:06 -08:00
Tim Kuehn
e029c48876 Update dependency versions to not use * 2016-02-12 01:09:55 -08:00
Tim Kuehn
71e7ed5014 Don't use travis-cargo for now 2016-02-12 00:58:16 -08:00
Tim Kuehn
f19139a1b5 Fix syntax error 2016-02-12 00:56:12 -08:00
Tim Kuehn
e552ae05ba Merge branch 'travis' 2016-02-12 00:54:57 -08:00
Tim Kuehn
ce49e6b000 Move .travis.yml to root 2016-02-12 00:54:42 -08:00
Tim
8fab48dd5a Merge pull request #3 from tikue/travis
Add travis build info
2016-02-12 00:51:16 -08:00
Tim Kuehn
3b44df7638 Add travis build info 2016-02-12 00:49:02 -08:00
shaladdle
bb40fe2153 Merge pull request #2 from tikue/update-metadata
Update cargo metadata
2016-02-11 23:56:33 -08:00
Tim Kuehn
7624c19e02 Update cargo metadata 2016-02-11 23:50:59 -08:00
shaladdle
92fa53e0df Merge pull request #1 from tikue/update-readme
Update readme.
2016-02-11 23:24:59 -08:00
Tim Kuehn
ae1573d8da Update readme.
Some planned improvements were out of date, and one major one was missing.
2016-02-11 23:10:46 -08:00
Adam Wright
6caa0aa13c Merge branch 'organize-tests' into 'master'
Organize tests

For some reason the tests in this module bother me. I tried to make it a little clearer what the reasoning behind each one is, and I removed some that were no longer necessary.

See merge request !24
2016-02-12 12:33:24 +05:30
Tim Kuehn
7cfca8f721 Singular module names 2016-02-11 23:02:35 -08:00
Tim Kuehn
28735296fe Merge branch 'master' into organize-tests 2016-02-11 22:53:28 -08:00
Tim Kuehn
3d2cc1f0d3 Organize macro module tests 2016-02-11 22:53:13 -08:00
Adam Wright
428e5a87b6 Merge branch 'implicit-return-type' into 'master'
Implicit return type

Enables

```
service! {
    rpc ack();
}
```

See merge request !23
2016-02-12 12:01:50 +05:30
Tim Kuehn
f6063828df Workout the implicit return change a bit more in tests 2016-02-11 22:28:53 -08:00
Tim Kuehn
f727dac87b Merge branch 'type-ascription' into implicit-return-type 2016-02-11 22:22:14 -08:00
Adam Wright
34b05632f6 Merge branch 'type-ascription' into 'master'
Try out type ascription



See merge request !22
2016-02-12 11:43:30 +05:30
Adam Wright
b84f60b843 Merge branch 'serialize-traits' into 'master'
Factor out serialization code into a Serialize and Deserialize trait

Makes the client and server code a bit nicer by sharing commonalities between them.

See merge request !20
2016-02-12 11:42:45 +05:30
Adam Wright
2d22d435f9 Merge branch 'master' into serialize-traits 2016-02-11 22:10:51 -08:00
Adam Wright
971b27a4d2 Merge branch 'remove-inflight-rpcs' into 'master'
Remove the struct InflightRpcs.

We were previously doing a lot of accounting to make sure the server never exits before all open connection handlers. However, now that we're using scoped threads, that's taken care of by the scoped library, and we were essentially doing redundant work.

See merge request !19
2016-02-12 11:34:15 +05:30
Tim Kuehn
51ec0a1219 Merge branch 'serialize-traits' into type-ascription 2016-02-11 22:04:14 -08:00
Tim Kuehn
dbadbf3ef5 Merge remove-inflight-rpcs into serialize-traits 2016-02-11 22:03:45 -08:00
Tim Kuehn
42d876bf41 Don't panic if on Err from try_clone 2016-02-11 21:57:58 -08:00
Tim Kuehn
7099fccbfa Allow rpc methods with an implicit unit return type 2016-02-11 21:19:04 -08:00
Adam Wright
9416921797 Merge branch 'server-writer-thread' into 'master'
Server: use a dedicated writer thread for each open connection

So that the TcpStream does not need to be locked.

See merge request !18
2016-02-12 10:04:56 +05:30
Adam Wright
8bbcb16d7f Remove unwanted whitespace 2016-02-11 20:33:18 -08:00
Tim Kuehn
868938d83a Try out type ascription 2016-02-11 00:04:20 -08:00
Tim Kuehn
3a046e783c Merge remove-inflight-rpcs into serialize-traits 2016-02-10 23:52:04 -08:00
Tim Kuehn
7ab3ae8689 Merge server-writer-thread into remove-inflight-rpcs 2016-02-10 23:31:00 -08:00
Tim Kuehn
62a9fb6391 Merge master into server-writer-thread 2016-02-10 23:29:36 -08:00
Tim
e0acd9dafd Consistently stylize tarpc in readme 2016-02-11 07:15:03 +05:30
Tim Kuehn
5ae1d6fe91 Update Cargo.toml license 2016-02-08 13:57:23 -08:00
Adam Wright
7baa8b947a Merge branch 'update-license' into 'master'
Update license from dual Apache 2.0/MIT to just MIT.



See merge request !21
2016-02-09 01:31:38 +05:30
Tim Kuehn
a58dea0ec5 Update license from dual Apache 2.0/MIT to just MIT. 2016-02-08 11:52:51 -08:00
Adam Wright
5d05ebab26 Merge branch 'client-server-modules' into 'master'
Move client and server code into protocol submodules

Things were getting too large in protocol.rs

See merge request !17
2016-02-09 01:03:15 +05:30
Tim Kuehn
b771854e78 Factor out serialization code into a Serialize and Deserialize trait 2016-02-06 14:53:40 -08:00
Tim Kuehn
22927dedfa Merge branch 'master' into server-writer-thread 2016-02-01 22:35:06 -08:00
Adam Wright
d223c699c3 Merge branch 'no-mod' into 'master'
Refactor the macro

1. Rename `rpc!` ==> `service!`
2. Rip out the module-related parts.

The end result is that, in the common case, there will be one level of indentation less. In some cases, there will be two levels less. The module parts had no benefit over simply scoping the macro invocation within a module.

The macro was renamed because this looks bad:

```rust
rpc! {
    rpc hello(s: String) -> String;
}
```

And I think `service!` better describes what is expanded.

See merge request !16
2016-02-01 13:31:49 +05:30
Tim Kuehn
e4b483304d Use wildcard dep for now 2016-01-31 22:35:13 -08:00
Tim Kuehn
6e49bcdae9 Amend some documentation 2016-01-31 22:20:43 -08:00
Tim Kuehn
919441c9d0 Document the benchmark 2016-01-31 22:14:43 -08:00
Tim Kuehn
5d8d04d521 Use expect() instead of unwrap() 2016-01-31 22:05:04 -08:00
Tim Kuehn
a6fec6f861 Merge branch 'master' of ssh://git.adam-wright.net:10022/shaladdle/tarpc into no-mod 2016-01-31 21:37:37 -08:00
Adam Wright
361976b7de Merge branch 'async' into 'master'
Add an AsyncClient generated by rpc!

Returns `Future<T>` instead of `Result<T>`. `Future<T>` has one method, `get()`, which returns a `Result<T>`.

See merge request !15
2016-02-01 11:05:46 +05:30
Tim Kuehn
cf8f0e23b9 Merge branch 'server-writer-thread' into remove-inflight-rpcs 2016-01-31 21:31:49 -08:00
Tim Kuehn
8b6f89c0c6 Merge branch 'client-server-modules' into server-writer-thread 2016-01-31 21:31:21 -08:00
Tim Kuehn
59f502ef3e Merge no-mod ==> client-server-modules 2016-01-31 21:31:02 -08:00