imperio
imperioworld.bsky.social
imperio
@imperioworld.bsky.social
rustlang reviewer and contributor, rustdoc team leader, gnome foundation member, co-owner of the Gtk-rs organization and of the askama-rs organization

Mastodon: https://toot.cat/@imperio
Next Paris Rust meetup will on the 8th of december and will be hosted by criteo.

You can register here: www.meetup.com/rust-paris/e...
Rust meetup #81, Mon, Dec 8, 2025, 6:30 PM | Meetup
(English version below) Ce Rust meetup Paris sera hébergé par Criteo. L'adresse complète est : 32 rue Blanche 75009 Paris Les rustacées de n'importe quel niveau sont les
www.meetup.com
November 15, 2025 at 12:29 PM
Reposted by imperio
🦀 I've improved the implementation behind all the string formatting macros in Rust: println, panic, format, write, log::info, etc. (Everything using format_args!().) They will compile a bit faster, use a bit less memory while compiling, result in smaller binaries, and produce more efficient code! 🎉
November 13, 2025 at 1:31 PM
To expand/collapse sections in rust documentation, you can use `+` and `-` shortcuts. We added `=` to expand sections (since it's the same key as `+`).

PR: github.com/rust-lang/ru...
rustdoc: quality of life changes by liigo · Pull Request #148466 · rust-lang/rust
Support = shortcut (alongside +) to expand all sections. Already support s and S, Shift or not. Fix search-input's placeholder. The input is auto focused, any key press will be accepted as inpu...
github.com
November 12, 2025 at 4:56 PM
Fixed an invalid proc-macro link generation in the "jump to def" rustdoc feature. Also started to unify code responsible for generating links in rustdoc, but much remains to be done to only have one location to do it all.

PR: github.com/rust-lang/ru...
[rustdoc] Fix invalid jump to def macro link generation by GuillaumeGomez · Pull Request #148080 · rust-lang/rust
Follow-up of #147820. I realized that when there was no intra-doc link linking to the same item, then the generated link for macros in jump to def would be invalid. To make the code less redundant,...
github.com
November 12, 2025 at 1:29 PM
Added a new rustc lint which will hopefully prevent a lot of very wrong casts: `function_casts_as_integer`.

In short, if you convert a function to an integer, it will now warn.

Why? Because of cases like:

```rust
let _ = [0; u8::max as usize];
```

1/2
Add new `function_casts_as_integer` lint by GuillaumeGomez · Pull Request #141470 · rust-lang/rust
The function_casts_as_integer lint detects cases where users cast a function pointer into an integer. warn-by-default Example fn foo() {} let x = foo as usize; warning: casting a function into an i...
github.com
November 11, 2025 at 4:52 PM
We had a highlighting issue in rustdoc: when some keywords were followed by `!` (like `if !true {}`), they were considered as a macro call.

Fixed in github.com/rust-lang/ru....
Fix invalid macro tag generation for keywords which can be followed by values by GuillaumeGomez · Pull Request #148655 · rust-lang/rust
Fixes #148617. The problem didn't come from the generate-macro-expansion feature but was actually uncovered thanks to it. Keywords like if or return, when followed by a ! were considered as mac...
github.com
November 10, 2025 at 10:48 AM
Working on adding NetBSD support in sysinfo crate. To do so, I'm looking at a lot of other software doing the same thing, allowing me to uncover bugs/potential improvements, like this one in htop: github.com/htop-dev/hto...

It's pretty cool to send PRs to projects you've been using since forever =D
NetBSD: Improve process state retrieval code by GuillaumeGomez · Pull Request #1809 · htop-dev/htop
Also: only iterate on possible states if kinfo_lwp struct is not NULL. If you're interested into it (if you agree, gonna be in a follow-up PR): we currently need to check at each iteration of t...
github.com
November 9, 2025 at 4:41 PM
@viedecarabin.bsky.social Bonjour, je viens de finir de lire vdc 5 (très sympa) et je me demandais : pourquoi y a-t-il écrit ENIGME dans les bas de pages ? Au début je pensais que c'était un bug d'impression ^^'
November 9, 2025 at 12:37 AM
Today some bugfixes for rustdoc (and an improvement):

* Removed broken special case for index generator: github.com/rust-lang/ru...
* Fixed a bug in the "macro expansion" feature: github.com/rust-lang/ru...
* Simplified code handling search filtering: github.com/rust-lang/ru...
rustdoc-search: remove broken index special case by notriddle · Pull Request #148563 · rust-lang/rust
Fixes #148431
github.com
November 7, 2025 at 1:57 PM
Some rustdoc news:

* When you use search and filter on `import`, it will now also include reexported extern (PR: github.com/rust-lang/ru...)
* Some cleanup which led to a performance improvement in highlighting (PR: github.com/rust-lang/ru...)
github.com
November 3, 2025 at 10:54 AM
In rustdoc search, when using `macro` filter, it will now include attribute and derive macros as well.

PR: github.com/rust-lang/ru...
[rustdoc] Include attribute and derive macros when filtering on "macros" by GuillaumeGomez · Pull Request #148176 · rust-lang/rust
As discussed here, some filters should have been "grouped". This PR allows attribute and derive macros to match the macro filter. I'll wait for #148005 to add more tests as it would r...
github.com
October 30, 2025 at 10:50 AM
Reposted by imperio
rust-analyzer now fully uses the new trait solver! 🎉🎉 rust-analyzer.github.io/thisweek/202...
Changelog #299
Commit: 049767eRelease: 2025-10-27 (v0.3.2658)
rust-analyzer.github.io
October 27, 2025 at 11:55 AM
After next docs.rs server update, you will be able to use `additional-targets` in your Cargo.toml docs.rs metadata. That will allow you to not have to re-declare the whole default list target but instead to just add more platforms as you see fit

Should simplify things :)

github.com/rust-lang/do...
Docs.rs
docs.rs
October 22, 2025 at 3:11 PM
Following changes in Rust tier targets, docs.rs updated the default targets as well.

Blog post is here: blog.rust-lang.org/2025/10/16/d...
Docs.rs
docs.rs
October 16, 2025 at 4:10 PM
Reposted by imperio
I'm excited to share what I've been working on with @erikjee.bsky.social: RustNL's #rustlang Maintainers Fund!

Many people and companies contributing to Rust, but there are fewer and fewer paid positions for general maintenance (reviews,cleanups,etc). We need to fix that.

bsky.app/profile/rust...
We're excited to announce a new initiative to support the Rust Project, our Rust Maintainers Fund!

We are setting out to employ 6 full-time maintainers and 6 interns in 2026 to make sure #rustlang is well maintained and bugs and contributions get the attention they need.

Read more: rustnl.org/fund
October 14, 2025 at 3:15 PM
Reposted by imperio
If your company is interested in funding Rust maintainers, please reach out to me or @erikjee.bsky.social!

You can find our sponsors prospectus here: rustnl.org/resources/Ru...

Let me know if you want to talk! 💛

(Message me through Bluesky, Mastodon, Rust Zulip, or email: [email protected])
October 14, 2025 at 3:15 PM
The Rust GCC backend is now tested as part of the Rust merge CI process. \o/

We should now hopefully spend a lot less time on syncs and focus on increase the support for the GCC backend.

PR: github.com/rust-lang/ru...
Add a CI job that runs a subset of UI tests with the GCC backend by GuillaumeGomez · Pull Request #146414 · rust-lang/rust
Part of rust-lang/compiler-team#891. r? @Kobzol
github.com
October 14, 2025 at 12:34 PM
It's late, so time for cursed codes (they all compile of course).

Sweet dreams! 😈

1/4
October 13, 2025 at 10:24 PM
Next Paris rust meetup will be hosted by Centreon on the 13th of November.

You can register here: www.meetup.com/rust-paris/e...
Rust meetup #80, Thu, Nov 13, 2025, 6:00 PM | Meetup
(English version below) Ce Rust meetup Paris sera hébergé par Centreon. L'adresse complète est : 30 rue du Château des Rentiers, 6e étage 75013 Paris Les rustacées de n'
www.meetup.com
October 13, 2025 at 2:01 PM
New Rust GCC backend progress report:

blog.antoyo.xyz/rustc_codege...
rustc_codegen_gcc: Progress Report #38
Antoyo's Personal Blog
blog.antoyo.xyz
October 13, 2025 at 1:28 PM
So we can now have a webview in GTK (using gtk-rs, glad to see the project is going great!) using servo. So much cool stuff in such a short message.

Blog post: blogs.gnome.org/nacho/2025/1...
Servo GTK
I just checked and it seems that it has been 9 years since my last post in this blog :O As part of my job at Amazon I started working in a GTK widget which will allow embedding a Servo Webview inside ...
blogs.gnome.org
October 7, 2025 at 3:54 PM
Just found out about an upcoming opensource printer. Once they also provide a scanner, I'll definitely buy one.

www.crowdsupply.com/open-tools/o...
Open Printer
Finally, an open hardware printer you can actually understand, repair, and upgrade
www.crowdsupply.com
October 6, 2025 at 9:50 AM
Just published the `0.37.2` version of the Rust sysinfo crate.

It improves some docs, fixes `System::uptime` on Android and improved how modified/removed processes exe paths are handled.

crates.io/crates/sysinfo

Enjoy!
crates.io: Rust Package Registry
crates.io
October 2, 2025 at 12:55 PM
Really nice performance gain for rustdoc (up to 12%!) by using a lightweight version of a rustc internal type.

PR: github.com/rust-lang/ru...
Replace `rustc_span::Span` with a stripped down version for librustdoc's highlighter by yotamofek · Pull Request #147189 · rust-lang/rust
While profiling rustdoc's syntax highlighter, I noticed a lot of time being spent in the Span interner, due to the highlighter creating a lot of (new) spans. Since the only data from the Span t...
github.com
October 1, 2025 at 5:58 PM