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
Adam Wright
d906357ad8
Say we're done at the end.
2016-01-10 17:49:18 -08:00
Adam Wright
0d61812a3f
Updated error message when you're not on a branch
...
And fix uncommitted changes detection
2016-01-10 17:49:18 -08:00
Adam Wright
ab92f90aff
Don't try to stash, just tell the user they're dumb.
2016-01-10 17:49:18 -08:00
Adam Wright
0aa2661f02
Pre-push hook that rejects branches with non-passing tests
2016-01-10 17:49:18 -08:00
Adam Wright
3ea0f6fbb5
WIP
2016-01-10 17:49:18 -08:00
Tim Kuehn
0f5ef5f575
Move macros crate into a module in tarpc crate
2016-01-10 15:48:32 -08:00
Tim Kuehn
82cc7b3303
Fix tests
2016-01-10 15:01:40 -08:00
Tim Kuehn
87f71b5549
Document all public items and deny(missing_docs)
2016-01-10 14:27:19 -08:00
Adam Wright
56bd362fb1
Modify serve_async to expose the bound address
...
serve_async was taking a SocketAddr, and then binding to it. This is fine if
your'e always sure of the exact address you want to bind to, but in some cases
you don't know.
One such case is when you want the OS to assign you and ephemeral port number,
like we do in our tests. In this case, you pass 0.0.0.0:0 as the address, and
then call bind. After that, you don't know which address the listener bound to,
so we can't make the subsequent call to TcpStream::connect without getting a
weird error.
This is fixed by the ServeHandle object exposing a local_addr() method, which
returns the address that the listener bound to.
2016-01-10 02:29:06 -08:00
Tim Kuehn
fae09e3fed
Fix doc test
2016-01-09 14:44:30 -08:00
Adam Wright
5e34e32094
Generate an unused enum variant to fix a compiler error
...
Previously if you made a service with a single rpc it would generate an error
because of a redundant match statement.
2016-01-09 14:26:02 -08:00
Tim Kuehn
3bf2d1f16d
Fix syntax and add doc comments to public items created in the macro
2016-01-09 14:24:16 -08:00
Tim Kuehn
7c89df7b09
Rustfmt
2016-01-09 14:23:55 -08:00
Tim Kuehn
b17b8c60d4
Remove failed requests from requests map. Fix #14 .
2016-01-09 13:02:23 -08:00
Tim Kuehn
195cb4235d
Rename wtf method
2016-01-09 12:48:21 -08:00
Tim Kuehn
98a34e4256
printlns => logging
2016-01-09 12:45:16 -08:00
Tim Kuehn
8567b9b845
Make macro easier to read
2016-01-09 04:52:12 -08:00
Tim Kuehn
40b0aecec1
Fix failing tests
2016-01-09 04:43:59 -08:00
Tim Kuehn
e32ef30c8d
Warn if an error occurs when disconnecting client from server
2016-01-09 04:33:55 -08:00
Adam Wright
cb63166b82
Remove some stupid whitespace
2016-01-09 04:17:00 -08:00
Adam Wright
c352ff12b4
we tarpc_macros now
2016-01-09 04:00:02 -08:00
Adam Wright
2d9964293e
Implement drop for tarpc::Client
2016-01-09 03:57:46 -08:00
Adam Wright
a63c935a33
modify macros to use tarpc:: stuff
2016-01-09 03:42:40 -08:00
Adam Wright
2f324f1689
Remove silly requirement of clone for fn rpc
2016-01-09 03:01:59 -08:00
Adam Wright
9d2a878f88
Merge branch 'macro'
2016-01-09 02:13:58 -08:00
Adam Wright
e0f9c89c0e
Make handle_conn be private
2016-01-09 02:13:44 -08:00
Adam Wright
096cf25824
Remove commented code
2016-01-09 01:34:25 -08:00
Adam Wright
2f1b8e931d
Clean up warnings
2016-01-09 01:34:08 -08:00
Tim Kuehn
736cf5d463
Add my name
2016-01-09 01:26:18 -08:00
Tim Kuehn
b1e12d6b54
Merge branch 'master' of ssh://git.adam-wright.net:10022/shaladdle/adamrpc-rs
2016-01-09 01:23:22 -08:00
Adam Wright
e92b0742b1
Merge remote-tracking branch 'refs/remotes/origin/master'
...
Closing issues
Fix \#2
Fix \#6
Fix \#8
2016-01-09 01:20:13 -08:00
Adam Wright
df8d0f2303
Clean up those unused thingies
...
Closes #2 .
2016-01-09 01:18:44 -08:00
Adam Wright
213963ddda
Clean up those unused thingies
2016-01-09 01:16:59 -08:00
Adam Wright
55f1686e52
Concurrency actually works
2016-01-09 01:15:29 -08:00
Adam Wright
47828e2c8e
Tests pass, hooray
2016-01-09 00:45:30 -08:00