Tim Kuehn
41c036fa0f
Simplify the macro.
...
No longer create a submodule. It's up to the user to decide how to scope the macro invocation.
The preferred method will be to invoke within a dedicated rpc module.
2016-01-27 21:11:38 -08:00
Tim Kuehn
69f4c954fa
Clean up a few tests.
2016-01-27 01:31:41 -08:00
Tim Kuehn
27cb18b309
Add async test
2016-01-27 01:23:52 -08:00
Tim Kuehn
9e6155673f
clean up benchmark
2016-01-27 01:20:17 -08:00
Tim Kuehn
6109d825f6
Add an async client
2016-01-27 01:09:01 -08:00
Tim Kuehn
489ab555c3
Merge branch 'master' of ssh://git.adam-wright.net:10022/shaladdle/tarpc
2016-01-26 21:14:20 -08:00
Tim
288ce6a94a
Merge branch 'timeout' into 'master'
...
Increase timeouts. These are too short on linux.
See merge request !12
2016-01-27 10:39:07 +05:30
Adam Wright
9c6a66d81c
Increase timeouts. These are too short on linux.
2016-01-26 21:06:49 -08:00
Tim Kuehn
d4a20bde28
Add license and description to Cargo.toml
2016-01-26 20:10:18 -08:00
Adam Wright
467a981088
Merge branch 'less-unwraps' into 'master'
...
Don't unwrap so nonchalantly
See merge request !11
2016-01-26 13:18:19 +05:30
Tim Kuehn
cd24e87672
Put back an OK unwrap
2016-01-25 23:45:43 -08:00
Tim Kuehn
89ebb4a446
Don't unwrap so nonchalantly
2016-01-25 23:38:45 -08:00
Adam Wright
06c0b41c21
Merge branch 'rustfmt-cfg' into 'master'
...
Add rustfmt.toml for reordering imports
See merge request !10
2016-01-26 12:58:33 +05:30
Tim Kuehn
1ec610b7c2
Reorder imports
2016-01-25 23:25:23 -08:00
Adam Wright
149aa98342
Merge branch 'code-refactor' into 'master'
...
Code refactor
Factor out HashMap in reader into its own struct.
Precipitated by the clippy warning about complex types, but definitely makes the code more readable, as well.
This should be merged after #8
See merge request !9
2016-01-26 12:52:16 +05:30
Tim Kuehn
d1013dd5a8
cargo fmt
2016-01-25 23:11:19 -08:00
Tim Kuehn
0966b2c823
Remove unnecessary call to HashMap::clear
2016-01-25 23:09:14 -08:00
Tim Kuehn
72ab27713d
Remove superfluous block
2016-01-25 23:01:23 -08:00
Tim Kuehn
57c058dfbc
Use try! where applicable
2016-01-25 22:50:23 -08:00
Adam Wright
bb8fc35326
Merge branch 'crossbeam' into 'master'
...
Crossbeam
Use crossbeam for server-side thread spawning, removing Arcs and superfluous trait bounds where possible.
See merge request !8
2016-01-26 12:02:57 +05:30
Tim Kuehn
61e304ddfb
Merge branch 'crossbeam' into code-refactor
2016-01-25 22:31:46 -08:00
Tim Kuehn
0d1be7400b
Make type param single char
2016-01-25 22:31:13 -08:00
Tim Kuehn
382a232dcc
Merge branch 'crossbeam' into code-refactor
2016-01-25 21:49:54 -08:00
Tim Kuehn
bb53b5733f
Make 'f' a field of ConnectionHandler and rename ==> server
2016-01-25 21:49:31 -08:00
Tim Kuehn
3ec2322714
Merge branch 'crossbeam' into code-refactor
2016-01-25 21:38:15 -08:00
Tim Kuehn
5d50ccfb6f
Make read_stream a field of ConnectionHandler
2016-01-25 21:35:47 -08:00
Tim Kuehn
39706467ab
Factor out HashMap in reader into its own struct.
...
Precipitated by the clippy warning about complex types, but definitely makes the code more readable, as well.
2016-01-25 20:48:26 -08:00
Tim Kuehn
3cff1c0b62
cargo fmt
2016-01-24 23:07:24 -08:00
Tim Kuehn
4c2c072fff
Use non-moving closure, where possible
2016-01-24 23:04:56 -08:00
Tim Kuehn
132fbf368b
Merge branch 'master' of ssh://git.adam-wright.net:10022/shaladdle/tarpc into crossbeam
2016-01-24 18:33:17 -08:00
Tim Kuehn
854d2075f3
Use crossbeam scoped threads where possible
2016-01-24 18:32:50 -08:00
Tim
ff40c5dcfa
Merge branch 'expose-serve-handle' into 'master'
...
Re-export ServeHandle
See merge request !7
2016-01-25 07:08:13 +05:30
Adam Wright
d80de197b3
Re-export ServeHandle
2016-01-24 17:35:08 -08:00
Adam Wright
14ef89bbca
Change the commit hook to print something while its running tests
2016-01-24 17:29:38 -08:00
Adam Wright
195bd65e22
Merge branch 'deref-impl' into 'master'
...
impl<P> Service for P where P: Send + Sync + ::std::ops::Deref<Target=Service>
Fix #24
See merge request !6
2016-01-25 06:49:59 +05:30
Tim Kuehn
68445824af
Add a test, and change umbrella impl...
...
...to be for Deref<Target=S> where S: Service instead of Deref<Target=Service>.
2016-01-24 17:18:02 -08:00
Tim Kuehn
f46df2b07a
Merge branch 'master' into deref-impl
2016-01-24 17:09:09 -08:00
Adam Wright
b5c7e7bc41
Merge branch 'mod-attrs' into 'master'
...
Allow attributes on the generated module.
If no doc attribute is present, sets a default doc comment for the module.
See merge request !5
2016-01-25 06:32:09 +05:30
Tim Kuehn
23c0f43e49
Merge branch 'mod-attrs' into deref-impl
2016-01-24 16:58:26 -08:00
Tim Kuehn
57e39c77f7
Expand macro invocation test for attributes on items in the items { } block
2016-01-24 16:57:56 -08:00
Tim Kuehn
5afdaf88f8
Merge branch 'master' into deref-impl
2016-01-24 16:37:41 -08:00
Tim Kuehn
c3be60565b
Add an umbrella impl for Service for types that Deref to Service.
...
This means clients can only impl Service for types they define themselves, e.g. no longer for ()
2016-01-24 16:35:20 -08:00
Tim Kuehn
9bd7fc6711
Add missing license headers
2016-01-21 11:27:37 -08:00
Tim Kuehn
9224dcd00e
Add 'License' and 'Contributing' sections to README.
...
Also add .md file extension to CONTRIBUTING.
2016-01-21 11:10:13 -08:00
Tim Kuehn
feafd35add
Add CONTRIBUTING and LICENSE files, and add license header to source code files.
2016-01-21 11:06:17 -08:00
Tim Kuehn
ce12f4a981
rm trace macros again
2016-01-17 23:22:47 -08:00
Tim Kuehn
166fbf6891
Allow attributes on the generated module.
...
If no doc attribute is present, sets a default doc comment for the module.
2016-01-17 23:21:27 -08:00
Adam Wright
5039a28032
Merge branch 'remove-error-sender' into 'master'
...
Get rid of Error::{Sender, Receiver, Serializer, Deserializer}
See merge request !3
2016-01-18 11:43:21 +05:30
Tim Kuehn
8125f7dead
Merge master
2016-01-17 22:12:49 -08:00
Tim Kuehn
541dd8f9e6
Use pattern matching better
2016-01-17 22:08:04 -08:00