| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2023-09-22 | fix OS-specific I/O safety docs since the io_safety feature is stable | Ralf Jung | -4/+7 | |
| 2023-08-14 | wording; and explain some of the possible consequences of violating io-safety | Ralf Jung | -1/+1 | |
| 2023-08-13 | add more explicit I/O safety documentation | Ralf Jung | -1/+2 | |
| 2022-06-15 | Document that `BorrowedFd` may be used to do a `dup`. | Dan Gohman | -0/+6 | |
| 2022-06-14 | Implement stabilization of `#[feature(io_safety)]`. | Dan Gohman | -2/+2 | |
| Implement stabilization of [I/O safety], aka `#[feature(io_safety)]`. Fixes #87074. [I/O safety]: https://github.com/rust-lang/rfcs/blob/master/text/3128-io-safety.md | ||||
| 2022-05-11 | Add rustc_nonnull_optimization_guaranteed to Owned/Borrowed Fd/Socket | Dan Gohman | -0/+3 | |
| PR #94586 added support for using `rustc_nonnull_optimization_guaranteed` on values where the "null" value is the all-ones bitpattern. Now that #94586 has made it to the stage0 compiler, add `rustc_nonnull_optimization_guaranteed` to `OwnedFd`, `BorrowedFd`, `OwnedSocket`, and `BorrowedSocket`, since these types all exclude all-ones bitpatterns. This allows `Option<OwnedFd>`, `Option<BorrowedFd>`, `Option<OwnedSocket>`, and `Option<BorrowedSocket>` to be used in FFI declarations, as described in the [I/O safety RFC]. [I/O safety RFC]: https://github.com/rust-lang/rfcs/blob/master/text/3128-io-safety.md#ownedfd-and-borrowedfdfd-1 | ||||
| 2021-08-19 | Don't encourage migration until io_safety is stablized. | Dan Gohman | -4/+4 | |
| 2021-08-19 | I/O safety. | Dan Gohman | -0/+56 | |
| Introduce `OwnedFd` and `BorrowedFd`, and the `AsFd` trait, and implementations of `AsFd`, `From<OwnedFd>` and `From<T> for OwnedFd` for relevant types, along with Windows counterparts for handles and sockets. Tracking issue: - <https://github.com/rust-lang/rust/issues/87074> RFC: - <https://github.com/rust-lang/rfcs/blob/master/text/3128-io-safety.md> | ||||
