John Nunley
John Nunley
There are a few cases where a `Vec` is used to keep track of a unique set of indices/scripts for future reference. It would be more efficient to use a...
Here is an example program adapted from `piet` I wrote in my `piet-cosmic-text` crate. It is using `cosmic-text` v0.8.0  Here is the program after I update it to v0.9.0:...
Excerpt of `cargo bloat` when run on an example programming containing `winit` and [`piet-hardware`](https://crates.io/crates/piet-hardware), which uses `cosmic-text` for text: ``` File .text Size Crate Name 0.6% 2.1% 77.7KiB x11_dl x11_dl::xlib::Xlib::open::{{closure}}...
I see that this crate uses its own code for TTF parsing. Is there a reason why `ttf-parser` isn't used here? It has no dependencies and is written in exclusively...
The part about implementing Arc and Mutex is currently `TODO`'d out. If there is interest, I’d like to take a crack at writing this part.
[`rustix`](https://crates.io/crates/rustix) provides a safe interface over some `libc` calls. In addition it provides a direct interface over Linux system calls, which can significantly reduce the instruction count in many cases....
In https://github.com/rust-windowing/winit/pull/3222 I added a [parser](https://github.com/rust-windowing/winit/blob/master/src/platform_impl/linux/x11/xsettings.rs) for the data format found by querying the `_XSETTINGS_SETTINGS` atom. However this parser is not `winit`-specific. I think it could be useful outside of...
Given that there are some LibXCB-related exceptions on NetBSD and OpenBSD, we should be able to test them. We can use [`setup-cross-toolchain-action`](https://github.com/taiki-e/setup-cross-toolchain-action) to test NetBSD, but it doesn't support OpenBSD...
In other repos, it has been discussed to include traits like `Connection` in the public API so that users can supply their own connection types for various operations. See rust-windowing/raw-window-handle#120...
Right now, the `Serialize` trait looks something like this: ``` pub trait Serialize { type Bytes; fn serialize(&self) -> Self::Bytes; fn serialize_into(&self, bytes: &mut Vec); } ``` Meanwhile, the `Request`...