John Nunley
John Nunley
This PR adds a new feature, `io_safety`, which requires Rust 1.63. With this feature, the types in this crate implement `AsFd/AsSocket` and `TryFrom`. See also: sunfishcode/io-lifetimes#38 Should I also implement...
Rust 1.63 stabilized the I/O safety features in the standard library. As per sunfishcode/io-lifetimes#38, Rust crates in the ecosystem (such as `async-std` and `smol`) should be migrated to using the...
While running the `display_image` function, one of the CPU's on my computer suddenly rockets up to using 100% of the CPU.  Looking into the backtraces...
I'm writing a GUI framework that may use [`breadx`](https://github.com/bread-graphics/breadx), which is an X implementation not based on either Xlib or XCB, but written by hand. I'd like this GUI framework...
This resolves #93 by turning the `x11` crate into a `#![no_std]` crate. `x11` now has the `std` feature, enabled by default. At the crate root, I have created the crate-private...
As mentioned [here](https://github.com/Lokathor/bytemuck/pull/132#issuecomment-1234896922), `bytemuck`'s public API is very quickly becoming very unwieldy. Here's a screenshot of the current `docs.rs` main page. This doesn't include the functions in the `allocation` and...
I think it'd be fun/cute to have a mascot for `smol-rs` that isn't the default autogenerated profile picture. Any thoughts on this? Here's a quick sketch of my suggestion: a...
Consider the following code, where `bar` is an async function: ``` let foo = Some(24); foo.map(|foo| bar(foo)) ``` The end result of this is an `Option`. In order to `await`...
Resolves #93 by using the `OnceCell` type found in `async-lock`. This type allows for blocking operations, just like the `once_cell::Lazy` type that was used earlier. In addition, `async-lock` does not...
With the new release of [`once_cell` 1.15](https://github.com/matklad/once_cell/pull/198#issuecomment-1249886636), the MSRV had been increased to 1.56 and the edition has been bumped to 2021. This means `async-io`, which depends on `once_cell`, no...