Sean McArthur
e140dabed2
Use 64 iovecs in TcpStream::write_buf ( #295 )
2018-01-26 09:17:44 -08:00
Alex Crichton
fbdf04f604
More OSX fixes
2018-01-25 07:32:55 -08:00
Alex Crichton
a3c4aec127
Fix compile on OSX
2018-01-22 08:14:05 -08:00
Michal 'vorner' Vaner
b081e9593f
Get rid of some deprecated warnings ( #292 )
...
And allow the others to pass.
2018-01-13 12:03:30 -06:00
Alex Crichton
99fc38e0d6
Bump to 0.1.12
2018-01-08 09:51:05 -08:00
Sean McArthur
ce014943ec
add TcpStream::peek ( #291 )
2018-01-08 11:34:33 -06:00
Bastien Orivel
b395ccb6d9
Bump dependencies ( #289 )
2018-01-02 12:03:54 -06:00
Sean Stangl
943cd860cb
Use correct project name in README.md. ( #288 )
2018-01-02 12:03:18 -06:00
Carl Lerche
c45bbaa04e
Bump to v0.1.11
2017-12-11 13:58:30 -06:00
Steven Fackler
963eee3bc7
Add TcpListener::accept_std ( #284 )
2017-12-07 20:00:49 -06:00
Alex Crichton
b7ff130a0d
Tweak travis config
2017-11-30 18:44:36 -08:00
Alex Crichton
701488e6a1
Merge pull request #279 from asomers/futures
...
bump futures to 0.1.16
2017-11-17 14:14:11 +01:00
Alan Somers
2764fc3de2
bump futures to 0.1.16
...
examples/tinydb.rs uses futures::prelude, which was added in 0.1.16
2017-11-16 22:42:36 -07:00
Alex Crichton
1fe55b2b55
Don't unwrap accepted connections
...
Helps avoid spurious errors when testing.
Closes #277
2017-11-06 08:23:11 -08:00
Alex Crichton
25f30c91c4
Clarify wording of license information in README.
...
This text historically was copied verbatim from rust-lang/rust's own README [1]
with the intention of licensing projects the same as rustc's own license, namely
a dual MIT/Apache-2.0 license. The clause about "various BSD-like licenses"
isn't actually correct for almost all projects other than rust-lang/rust and
the wording around "both" was slightly ambiguous.
This commit updates the wording to match more precisely what's in the
standard library [2], namely clarifying that there aren't any BSD-like licenses
in this repository and that the source is licensable under either license, at
your own discretion.
[1]: https://github.com/rust-lang/rust/tree/f0fe716dbcbf2363ab8f929325d32a17e51039d0#license
[2]: https://github.com/rust-lang/rust/blob/f0fe716dbcbf2363ab8f929325d32a17e51039d0/src/libstd/lib.rs#L5-L9
2017-10-30 14:17:01 -07:00
Alex Crichton
0c5c5dfafe
Merge pull request #271 from cramertj/simplify-udp
...
Simplify UdpSocket futures
2017-10-27 22:36:14 -04:00
Taylor Cramer
3588f4d6ad
Simplify UdpSocket futures
2017-10-27 10:10:55 -07:00
Alex Crichton
ca8104ad69
Merge pull request #272 from cramertj/must-use
...
Set Future types as must_use
2017-10-27 12:19:21 -04:00
Alex Crichton
39173f8830
Merge pull request #270 from cramertj/fix-warnings
...
Fix warnings
2017-10-27 11:36:38 -04:00
Taylor Cramer
7624061021
Set Sink types as must_use
2017-10-25 18:03:31 -07:00
Taylor Cramer
bd9a07f3ad
Set Stream types as must_use
2017-10-25 18:02:14 -07:00
Taylor Cramer
b4fa47bd09
Set Future types as must_use
2017-10-25 17:57:25 -07:00
Taylor Cramer
6b8ad4ff99
Fix warnings
2017-10-25 17:27:24 -07:00
Alex Crichton
01198532c1
Merge pull request #263 from casey/timeout-debug
...
Derive Debug for Timeout and TimeoutToken
2017-10-10 13:59:02 -04:00
Casey Rodarmor
e10de1e94e
Derive Debug for Timeout and TimeoutToken
2017-10-09 20:16:38 -07:00
Alex Crichton
335c3e73a4
Fix UDP test
2017-10-05 19:57:36 -07:00
Alex Crichton
1c88b8f336
Bump to 0.1.10
2017-10-05 10:47:57 -07:00
Alex Crichton
84916f66fd
Take &SocketAddr in connect
2017-10-05 10:47:57 -07:00
Alex Crichton
259c7a0884
Make poll_at private again
...
Unsure that we'll want to continue to expose this, stick to being conservative
for now.
2017-10-05 10:46:51 -07:00
Alex Crichton
25760609fa
Avoid 0-length IoVec instances
...
These are unsound on Windows (unfortunately) and will soon be disallowed due to
carllerche/iovec#5
2017-10-05 10:41:05 -07:00
Alex Crichton
0868b97832
Add a tinydb example sharing state
...
This example is intended to showcase sharing state between all connected clients
on a server, for example a key/value store (in-memory database)
Closes #257
2017-09-23 12:22:34 -07:00
Alex Crichton
fbd0a9e5f1
Merge pull request #258 from alex/patch-1
...
Fixed docs for Timeout::new and new_at
2017-09-22 11:54:03 -05:00
Alex Gaynor
24dd856cfd
Fixed docs for Timeout::new and new_at
...
They no longer return futures, they return io::Result.
2017-09-22 11:01:34 -04:00
Alex Crichton
e33155edb1
Merge pull request #255 from mathstuf/doc-typos
...
docs: fix some typos
2017-09-14 15:36:20 -05:00
Ben Boeckel
de33e02c01
docs: fix some typos
2017-09-14 16:19:45 -04:00
Alex Crichton
317c11552c
Merge pull request #254 from alexcrichton/poll-at
...
Add {Interval,Timeout}::poll_at
2017-09-13 20:43:48 -05:00
Alex Crichton
fb05eb34af
Merge pull request #253 from alexcrichton/perf
...
Conditionally call `consume_queue` on messages
2017-09-13 16:33:26 -05:00
Alex Crichton
25dcb1fab5
Add {Interval,Timeout}::poll_at
...
Some contexts, like EC2, have `Instant::now` as a relatively expensive function
to call. To help amortize the cost of this function this commit exposes a new
function on `Interval` and `Timeout` to pass in the assumed current time.
2017-09-12 22:55:58 -07:00
Alex Crichton
97d80296cb
Conditionally call consume_queue on messages
...
The `consume_queue` function can be relatively slow for an empty queue (the fast
path) so optimize this a bit with a preflight check that should just touch a few
atomics.
2017-09-12 21:42:22 -07:00
Alex Crichton
b320d9ee58
Move timer heap assertions behind a dedicated cfg
...
No need to punish projects that enable debug assertions for themselves
2017-09-12 10:58:41 -07:00
Alex Crichton
63d7be0368
Merge pull request #251 from bkchr/udpsocket_connect
...
Adds UdpSocket connect, send and recv methods
2017-09-12 09:27:24 -05:00
Bastian Köcher
7950b43505
Adds a test for UdpSocket connect, recv and send
2017-09-12 14:37:40 +02:00
Bastian Köcher
c80105fe1e
Adds UdpSocket connect, send and recv methods
2017-09-12 14:00:55 +02:00
Alex Crichton
8a43472b35
Add an example of compressing on a CPU pool
2017-09-11 14:41:15 -07:00
Alex Crichton
ecedea3404
Add a README for the examples
2017-09-11 13:31:08 -07:00
Alex Crichton
2e5cd1640e
Merge pull request #250 from henninglive/udp-zero-length
...
UDP 0-length datagrams
2017-09-11 10:43:40 -05:00
Alex Crichton
85257e19af
Touch up a few examples
2017-09-11 08:43:11 -07:00
Alex Crichton
a611f6ec30
Add a UDP mode to the connect example
2017-09-11 08:33:09 -07:00
Henning Ottesen
bda6ed9241
UDP 0-length datagrams
...
Resolves #248 , preventing UdpFramed from sending 0-length datagrams.
Also, adds 0-length tests for UdpSocket.
2017-09-11 17:32:37 +02:00
Alex Crichton
5e4cfdfab1
Recommend the connect example over nc
2017-09-11 08:07:38 -07:00