Un concepteur sait qu’il a atteint la perfection non pas quand il n’y a plus rien à ajouter mais quand il ne reste rien à enlever.
Relm is an attempt to do an idiomatic GUI library in Rust, based on gtk+. See the introduction article for details about why this library was created and how to use it.
I’ve just released relm version 0.14!
This new release, like the previous one, does not provide a bunch of new features, but fix a very important issue: it removes the dependency on futures.
The reason for that is to simplify the library.
Indeed, futures and tokio are generic, abstract libraries that can be quite complex to use.
Many of the reasons why I decided to drop these crates are explained in this blog article.
One point that is not mentioned there is that it is incredibly difficult to write a library for a new protocol implemented on top of tokio.
Why is that? Simply because there’s no way to debug issues like why isn’t this fd polled except using
So, what’s the alternative?
If you don’t need async IO, well, you don’t need anything and you won’t have this extra complexity anymore.
If you need it, you can use the
gio async methods with one of the
The now working http example shows how to do that.
In the next months, I’ll work on implementing a few abstractions, as needed, while working on one of my project that needs it.
The goal is to build a very simple abstraction, that will work nicely with relm, and keep it as simple as possible to avoid the issues we got with
This new version is the first step in making relm simpler and (as you may have guessed by the quote at the top of this article) you should expect more breaking changes to come that will make this crate even easier to use. As always, your feedback is very much appreciated. Also, there are issues that could use some love and many of them are tagged as easy if you wish to start with something simple. Don’t wait to make a difference in the Rust ecosystem!
Please comment on Reddit.