diff --git a/README.md b/README.md index deca3b2..db22b0d 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,7 @@ in the Windows API. Here's the fun part. `BorrowedFd` and `OwnedFd` are `repr(transparent)` and hold `RawFd` values, and `Option` and `Option` are -FFI-safe (on nightly Rust), so they can all be used in FFI [directly]: +FFI-safe (on Rust >= 1.63), so they can all be used in FFI [directly]: [directly]: https://github.com/sunfishcode/io-lifetimes/blob/main/src/example_ffi.rs @@ -124,7 +124,7 @@ be added. io-lifetimes's distinguishing features are its use of `repr(transparent)` to support direct FFI usage, niche optimizations so `Option` can support direct -FFI usafe as well (on nightly Rust), lifetime-aware `As*`/`Into*`/`From*` +FFI usafe as well (on Rust >= 1.63), lifetime-aware `As*`/`Into*`/`From*` traits which leverage Rust's lifetime system and allow safe and checked `from_*` and `as_*`/`into_*` functions, and powerful convenience features enabled by its underlying safety. @@ -143,7 +143,7 @@ io-lifetimes's [`OwnedFd`] type is also similar to [filedesc](https://crates.io/crates/filedesc)'s [`FileDesc`](https://docs.rs/filedesc/0.3.0/filedesc/struct.FileDesc.html) io-lifetimes's `OwnedFd` reserves the value -1, so it doesn't need to test for -`-1` in its `Drop`, and `Option` (on nightly Rust) is the same size +`-1` in its `Drop`, and `Option` (on Rust >= 1.63) is the same size as `FileDesc`. io-lifetimes's [`OwnedFd`] type is also similar to diff --git a/examples/flexible-apis.rs b/examples/flexible-apis.rs index 214fac0..c9e2833 100644 --- a/examples/flexible-apis.rs +++ b/examples/flexible-apis.rs @@ -10,7 +10,7 @@ use io_lifetimes::{AsFd, BorrowedFd, OwnedFd}; /// The simplest way to accept a borrowed I/O resource is to simply use a /// `BorrwedFd` as an argument. This doesn't require the function to have any /// type parameters. It also works in FFI signatures, as `BorrowedFd` and (on -/// Rust nightly) `Option` are guaranteed to have the same layout +/// Rust >= 1.63) `Option` are guaranteed to have the same layout /// as `RawFd`. /// /// Callers with an `AsFd`-implementing type would call `.as_fd()` and pass diff --git a/examples/hello.rs b/examples/hello.rs index ffa51c8..acd7f8b 100644 --- a/examples/hello.rs +++ b/examples/hello.rs @@ -124,5 +124,5 @@ fn main() -> io::Result<()> { not(all(windows, feature = "close")) ))] fn main() { - println!("On Unix, this example requires Rust nightly (for `io_safety_is_in_std`) and the \"close\" feature."); + println!("On Unix, this example requires Rust >= 1.63 and the \"close\" feature."); }