Commit Graph

106 Commits

Author SHA1 Message Date
Tim Kuehn
feafd35add Add CONTRIBUTING and LICENSE files, and add license header to source code files. 2016-01-21 11:06:17 -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
Tim Kuehn
adb77924e2 Move README.md to the proper package 2016-01-12 20:23:30 -08:00
Tim Kuehn
3031bd7cb0 Require rpc fns to be written in anticipation of allowing arbitrary items in the generated module 2016-01-12 20:23:00 -08:00
Tim Kuehn
27d80adf06 Merge branch 'master' of ssh://git.adam-wright.net:10022/shaladdle/tarpc 2016-01-12 20:20:49 -08:00
Tim Kuehn
9576b724ad Switch to bincode 2016-01-12 01:13:37 -08:00
Adam Wright
7e9d16eefe Add a readme. 2016-01-12 13:17:44 +05:30
Tim Kuehn
6141b295d1 Add a tarpc_examples package 2016-01-11 23:39:58 -08:00
Tim Kuehn
6a484c48c5 Obfuscate types internal to the generated module to reduce risk of collision with imports.
We don't support imports in the macro yet, but this commit will prevent problems when we do.
2016-01-11 22:54:53 -08:00
Tim Kuehn
1544712bc4 Move protocol::Error and protocol::Result to crate root 2016-01-11 22:39:46 -08:00
Tim Kuehn
6f634c50cc Add doc comment to generated module 2016-01-11 20:10:31 -08:00
Tim Kuehn
0256dc1c1a A few comments on macros 2016-01-11 00:56:40 -08:00
Tim Kuehn
212f0bb7aa Fix issue where service fns with no args would cause compile errors 2016-01-11 00:51:24 -08:00
Tim Kuehn
dca55d4310 Make the generated rpc module public 2016-01-10 18:39:33 -08:00
Adam Wright
1e42547ca4 Remove crap we don't need, actually fail on test result 2016-01-10 18:01:21 -08:00
Adam Wright
200a06ac57 Print FAIL in red. 2016-01-10 17:51:15 -08:00
Adam Wright
ea24921eff Just go to a simple world where we check the branch we're on 2016-01-10 17:49:18 -08:00