arcnmx

Results 70 comments of arcnmx

> The docs already depends on rust nightly for other reasons (the cfg doc feature) so why not use other nightly features? This is actually partially my argument for why...

Short of pulling in something like [enumflags2 for a `BitFlags` type](https://lib.rs/crates/enumflags2), I do think there's still value in keeping one of `LogLevels` or `LogLevelFlags` for `glib::translate::*` purposes. `Vec` just feels...

> `glib::LogLevel` (the enum) should implement `FromGlib` and `IntoGlib` for FFI purposes. Sure, though `FromGlib` would be fallible and thus wouldn't be a good type for `gir` to choose for...

Looking into it more, [log_set_handler](https://gtk-rs.org/gtk-rs-core/git/docs/glib/fn.log_set_handler.html) handles this awkwardly by turning each flag into an explicit argument. The whole boolean arguments considered harmful for hindering readability thing aside, it also then...

And a completely new angle that also throws a wrench into the works: `G_LOG_LEVEL_USER_SHIFT` permits libraries to use the unallocated bits in the log flags for their own levels. The...

> > it also then never passes those flags back along to the handler via the trampoline (which I believe are relevant?). > > How do you mean? Well, the...

> > but the trampoline strips them away and only passes a single `LogLevel`? > > Good point but IIRC the C code also only passes a log level to...

Back when I found your [futures post](https://coaxion.net/blog/2018/04/glib-gio-async-operations-and-rust-futures-async-await/#future) I was really hoping this would exist. Since I wanted async signals and didn't find anything (I had come across the above link...

So I had been playing with packaging this as well but patches were needed to work around [the non-portable mode crashes](https://github.com/etternagame/etterna/issues/850). More recently it looks like [non-portable mode was removed...

Thanks for clearing that up! My use case is [a pretty niche application for sharing a monitor with a QEMU VM](https://github.com/arcnmx/screenstub) - an X program that manages input redirection and...