Commit Graph

771 Commits

Author SHA1 Message Date
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
Tim Kuehn
4a35a86cbc Rename client_stubs => client_methods. Modify unit test to check for the Error variant returned on shutdown. 2016-01-17 21:56:30 -08:00
Tim
8521b61af8 Merge branch 'hide-docs' into 'master'
Hide helper macros from tarpc documentation



See merge request !4
2016-01-18 11:13:46 +05:30
Adam Wright
a7a3f47c1a Hide helper macros from tarpc documentation 2016-01-17 20:52:26 -08:00
Tim Kuehn
f92277e019 Clarify error message 2016-01-17 19:47:48 -08:00
Tim Kuehn
a5a9ec3d4f Make separate section in the readme for additional features 2016-01-17 19:45:13 -08:00
Tim Kuehn
26ddd3e610 Put deny(missing_docs) at the top. I think it looks better there. 2016-01-17 16:38:11 -08:00
Tim Kuehn
b93752aeaa Remove unused feature enables 2016-01-17 13:14:53 -08:00
Tim Kuehn
80fb9922cd Put doc attributes defined on rpc methods on both the Service trait fns as well as the Client method stubs. 2016-01-16 16:19:11 -08:00
Tim Kuehn
e54a9df152 Add checkboxes to planned improvements 2016-01-16 01:22:22 -08:00
Tim Kuehn
15f2547ec7 Update code in readme. Haven't checked if it runs 2016-01-16 01:20:03 -08:00
Tim Kuehn
667eef4066 Clarify timeout arg 2016-01-16 01:14:46 -08:00
Tim Kuehn
d4a760e7c8 Get rid of Error::{Sender, Receiver, Serializer, Deserializer} 2016-01-15 21:52:25 -08:00
Adam Wright
6823bab23e Merge branch 'remove-error-sender' into 'master'
Remove Error::Sender

It was dead code

See merge request !2
2016-01-15 14:44:39 +05:30
Tim Kuehn
e74058dbde Merge branch 'orderly-shutdown' 2016-01-15 01:10:28 -08:00
Tim Kuehn
dccaa88c80 Remove unused Error::Sender 2016-01-15 01:10:18 -08:00
Adam Wright
1402a6fff1 Merge branch 'orderly-shutdown' into 'master'
Orderly shutdown of serving threads when calling ServeHandle::shutdown.

Use condition variable server-side. Change client-side reader thread to empty the sender hashmap before returning.

See merge request !1
2016-01-15 14:08:11 +05:30
Tim Kuehn
001b1b1e43 Only join reader thread if tcp stream shutdown succeeded. 2016-01-15 00:34:36 -08:00
Tim Kuehn
ebd825e679 Bundle of small changes.
1. Rename OpenConnections => InflightRpcs, as it represents all current rpc calls being processed.
2. Change Packet from a tuple struct to a regular struct, to clarify its fields.
3. Lower log statements from WARN to INFO where appropriate.
4. Remove shutdown method on ConnectionHandler to disambiguate with the shutdown field.
5. Add a test of client behavior when calling rpc on a client whose stream closed.
2016-01-15 00:28:45 -08:00
Tim Kuehn
e4faff74be reformat 2016-01-14 20:45:09 -08:00
Tim Kuehn
b3ed2ef0ba Remove all shutdown logic. Just exit and deal with it. 2016-01-14 20:41:29 -08:00
Tim Kuehn
06e1eaa27a Make Serve's Request and Reply associated types. 2016-01-14 20:31:28 -08:00
Tim Kuehn
d81b37b35d Cargo fmt 2016-01-14 09:23:34 -08:00
Tim Kuehn
0df3cfdd98 Properly wait for spawned connection handler threads to shutdown. Set client timeout to None in tests. 2016-01-14 09:22:46 -08:00
Tim Kuehn
8c51d2ca1b Cargo fmt 2016-01-14 01:55:25 -08:00
Tim Kuehn
2644bf0d9b Ensure no rpc calls can be started once the reader thread returns. 2016-01-14 01:53:28 -08:00
Tim Kuehn
91053b96c0 Orderly shutdown of serving threads when calling ServeHandle::shutdown. 2016-01-14 01:09:47 -08:00
Tim Kuehn
f7bc1586c2 Merge branch 'master' of ssh://git.adam-wright.net:10022/shaladdle/tarpc 2016-01-13 00:21:28 -08:00
Adam Wright
6e37d3a37e Fix pre-push/commit hooks so they work.
- Move them back to the root directory of the repo
- Explicitly specify the path to the manifest we are running tests for
2016-01-12 23:35:53 -08:00
Tim Kuehn
7c34e06959 Add doc comment functionality 2016-01-12 23:09:59 -08:00
Tim Kuehn
0d77959625 Move readme back to root 2016-01-12 22:03:19 -08:00
Tim Kuehn
1f4a72b0f9 Clean up the syntax; add the README.md (I forgot to git add it last time) 2016-01-12 21:54:01 -08:00