summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-02-02Add alarm moduleThomas de Zeeuw
This module has two functions; set: set an alarm, and cancel: cancels a previously set alarm.
2018-01-27Cargo.toml: don't exclude test filesIgor Gnatenko
Those are pretty useful for distributions to verify that crate actually work.
2018-01-26Merge #845bors[bot]
845: 0.11.0 pre r=asomers a=asomers
2018-01-26Fix typo in release procedureAlan Somers
2018-01-26Bump version to 0.11.0-preAlan Somers
2018-01-26Merge #844bors[bot]
844: Bump version to 0.10.0 r=asomers a=asomers
2018-01-26Bump version to 0.10.0Alan Somers
2018-01-26Merge #843bors[bot]
843: Support arbitrary baud rates on BSDs r=asomers a=Susurrus Closes #842
2018-01-25Consistently use `Termios` in commentsBryant Mairs
2018-01-25Don't use map(drop) as it's hard to understandBryant Mairs
.map(drop) makes it seem like there is a need to drop the type at that point when really all you're doing is trying to erase the type information and return an empty tuple. So do that explicitly instead of throwing drop in there.
2018-01-25Support arbitrary baud rates on BSDsBryant Mairs
2018-01-26Merge #835bors[bot]
835: Add socket options for IP_TRANSPARENT / BIND_ANY r=asomers a=justinlatimer Add socket options for implementing a transparent proxy. Sources: [Linux](https://www.kernel.org/doc/Documentation/networking/tproxy.txt) [OpenBSD](https://man.openbsd.org/setsockopt.2#SO_BINDANY) [FreeBSD](https://www.freebsd.org/cgi/man.cgi?query=ip&manpath=FreeBSD+11.1-RELEASE) Thanks!
2018-01-22Merge #841bors[bot]
841: Fix libc at 0.2.36 in preparation for release r=Susurrus a=asomers
2018-01-21Fix libc at 0.2.36 in preparation for releaseAlan Somers
2018-01-21Merge #820bors[bot]
820: Change AioCb to primarily use Bytes instead of Rc<[u8]> r=Susurrus a=asomers `Rc<[u8]>` isn't a very good buffer type to use for aio. For one thing, it lacks interior mutability. For another, a single `Rc<[u8]>` can't be carved up into smaller buffers of the same type. `Bytes` and `BytesMut` fix both problems. This PR removes the ability to construct an `AioCb` from `Rc<[u8]>` and adds the ability to construct one from `Bytes`, `BytesMut`, or raw pointers (for consumers who need even more flexibility). At this stage, the PR has the following warts: 1. A hack is necessary to force small `Bytes` buffers to allocate on the heap. I plan to fix this with an enhancement to the bytes crate. 2. The `AioCb::buffer` method is necessary due to a deficiency in the tokio-core crate. Once I fix that, then only `AioCb::into_buffer`will need to be public.
2018-01-15aio: more documentationAlan Somers
2018-01-15aio: Clippy cleanupAlan Somers
2018-01-15aio: use `Bytes` instead of `Rc<[u8]>`Alan Somers
It's not actually safe to read into an `Rc<[u8]>`. It only worked because of a coincidental `unsafe` block. Replace that type with `BytesMut` from the bytes crate. For consistency's sake, use `Bytes` for writing too, and completely remove methods relating to `Rc<[u8]>`. Note that the `AioCb` will actually own the `BytesMut` object. The caller must call `into_buffer` to get it back once the I/O is complete. Fixes #788
2018-01-15Add AioCb::from_ptr and AioCb::from_mut_ptrAlan Somers
2018-01-11Add socket options for IP_TRANSPARENT / BIND_ANYJustin Latimer
2018-01-11Merge #836bors[bot]
836: Remove return value from `pause` r=asomers a=Thomasdezeeuw Follow up on https://github.com/nix-rust/nix/pull/829, since that repo is now unknown to GitHub.
2018-01-11Remove return value from `pause`Thomas de Zeeuw
`pause` will always return `-1` as a result and sets `errno` to `EINTR`, which indicates that a signal was caught by the process. Since this is the point of `pause` return an error here makes little sense. Closes #827.
2018-01-11Merge #834bors[bot]
834: Expose mqueue functions for all supported OSes r=asomers a=asomers
2018-01-10Expose mqueue functions for all supported OSesAlan Somers
2018-01-11Merge #813bors[bot]
813: Support `EtherAddr` and impl `Debug` for `InterfaceAddress/SockAddr` r=Susurrus a=LuoZijun 1. Add `EtherAddr` . 2. impl `Debug` for `InterfaceAddress` and `SockAddr`. Closes #809
2018-01-08Impl LinkAddr(MAC Addr)luozijun
2018-01-08impl `Debug` for all sockaddr typesluozijun
2018-01-06Merge #826bors[bot]
826: Add sigprocmask r=asomers a=Thomasdezeeuw
2018-01-06Add sigprocmaskThomas de Zeeuw
2018-01-03Merge #822bors[bot]
822: bump rand to 0.4 r=Susurrus a=ignatenkobrain
2018-01-01bump rand to 0.4Igor Gnatenko
2017-12-24Merge #821bors[bot]
821: Fix typo in README r=asomers a=Aaron1011
2017-12-24Fix typo in READMEAaron Hill
2017-12-20Merge #818bors[bot]
818: Clippy cleanup r=Susurrus a=Susurrus Various fixes for errors and warnings pointed out by clippy.
2017-12-20Replace boolean match with if/elseBryant Mairs
2017-12-20Don't clone Copy typesBryant Mairs
2017-12-20Remove redundant closureBryant Mairs
2017-12-20Replace '0 as *_' with ptr::null*()Bryant Mairs
2017-12-20Use backticks around types/functions in docsBryant Mairs
2017-12-20Use implicit returnsBryant Mairs
2017-12-20Remove unnecessary '@ _'Bryant Mairs
2017-12-20Use |= where appropriateBryant Mairs
2017-12-20Remove unnecessary impl ClonesBryant Mairs
2017-12-20Remove unnecessary lifetime annotationsBryant Mairs
2017-12-20Dereference in match head insteadBryant Mairs
2017-12-20Remove unnecessary .into()Bryant Mairs
2017-12-20Use unwrap_or_else instead of unwrap_or without a closureBryant Mairs
2017-12-20Remove unnecessary parenthesisBryant Mairs
2017-12-20Make numeric literals easier to readBryant Mairs
2017-12-20Merge redundant match armsBryant Mairs