Skip to main content

Search

Items tagged with: RustLang


I like to minimize the size of binaries I build. Unremovable debugging strings annoyed me, so I've added an option to completely neuter `Debug::fmt` in #Rustlang

https://github.com/rust-lang/rust/pull/123940


Some useful types for database-using Rust web apps by @antifuchs https://boinkor.net/2024/04/some-useful-types-for-database-using-rust-web-apps/ #RustLang #Rust


I wrote a guest post on the Rust Foundation blog on my experience attending the #CISA Open Source Software Security Summit:

https://foundation.rust-lang.org/news/attending-cisas-open-source-software-security-summit/

#RustLang


Today I found a TUI frontend for curl! 🔥

🌀**cute**: TUI HTTP client with API/auth key management and request history/storage.

🌐 Supports importing Postman collections!

🦀 Written in Rust & built with @ratatui_rs

⭐ GitHub: https://github.com/PThorpe92/CuTE

#rustlang #ratatui #tui #curl #http #request #api #auth


I made an interactive list for #Rustlings with #Ratatui 🐭🤩

Features:
↕️ Navigate through your progress
✅ Filter done/pending exercises
⏭️ Skip to / continue at some exercise
🔃 Reset an exercise to start over

I am very excited about version 6 (coming soon) 😁

#RustLang


#rust #rustlang devs: “inheritance is a plague! A pox upon beautiful programming! It must be banished and we shall never allow it!”

Also Rust devs: 🦀 can have a little inheritance as a treat uwu 🥺

https://aayushyavajpayee.substack.com/p/coming-soon


New blog post: on that time when I decided that if being able to panic one Rust program is good, then a feature that lets you panic _other_ programs would be better, right?

No, really, it's awesome. Here's Hubris's oddest syscall.

https://cliffle.com/blog/hubris-reply-fault/

#rustlang #embedded


today I've heard for the first time about the #RigelA open-source screen reader project for #Windows written in #RustLang. Unfortunately only Readme has an English version, all other documents and code comments are in chinese, but the project seems very promising. Use Google Translate or another translator if you, like me, don't speak Chinese. https://gitcode.net/mzdk100/rigela


Fellow infosec folks:

If I wanted to incentivize people to try and exploit Hubris, what should I do? What would you want to see?

While open source, the system is mostly used by Oxide, a for-profit company, so I would expect "am I doing this for free" to come up. Explicit threat model is also good. What else?

We've hired firms for this but with mixed results (they mostly know C). I wanna open it to everyone else. I would be _delighted_ to give guidance.

Boost away.

#infosec #rustlang


So Hubris on stm32 has a task called "sys" that handles a lot of common shared peripherals, like GPIO and clocking and reset.

One of the challenges on Hubris is that _parts_ of your application (like sys) can crash, and the other parts need to figure out how to deal with that.

Well, as of this afternoon, sys can't. As in, I have squashed the last potential panic, and turned on a switch that makes new panics into build errors.

I think this is neat.

#rustlang #embedded


I am working on a GTK/#Relm4 password manager already 😎
But it is a client for #BitWarden/#VaultWarden only.
You want to build a local one?

#GTK #Rust #rustlang #GNOME #Linux #Ubuntu #Linux #Fedora #OpenSUSE #Debian


Are you experienced with GTK and Rust ? :gnome: ❤️ :rust:

We are looking to contract someone to work on the new GNOME Password Manager 🔑

We want it to become a core/default app and help secure millions of users.

You'll be working with the GNOME Foundation, a non-profit dedicated to building emancipatory technologies for everyone.

Please send resume / portfolio to stf@gnome.org

Boosts welcome :boost_love:

#GTK #Rust #rustlang #GNOME #Linux #Ubuntu #Linux #Fedora #OpenSUSE #Debian


What if #rustlang only had panic="abort"? (Instead of panic="unwind", today's default.) It could simplify some parts of the language and prevent subtle bugs.

Do you absolutely need catch_unwind? If yes, please leave a reply!

(Panic hook and backtrace etc. will still work of course!)

  • No, abort is fine. (64%, 167 votes)
  • Yes, in tests/docs. (14%, 37 votes)
  • Yes, in production code. (20%, 54 votes)
258 voters. Poll end: 2 weeks ago


With the upcoming stabilization of the diagnostic namespace, I want to take stock of the compile time error messages generated by diesel and see what messages can be improved.

Please contribute your example of a bad diesel related compiler error message here: https://github.com/diesel-rs/diesel/discussions/3972

#rust #rustlang #diesel


If you are also wondering why #Rust binaries are so huge, you can minify their size, but be careful of course: https://github.com/johnthagen/min-sized-rust #RustLang


🦀 I'm really excited about today's #rustlang release! 🥳

- offset_of!
- c"" string literals!
- stripping release binaries by default!
- IP/socket types available in no_std!
- File::create_new (won't overwrite existing files)!
- more array and slice methods (each_ref, chunk methods)!
- Mutex::clear_poison!

https://blog.rust-lang.org/2024/03/21/Rust-1.77.0.html


Hi !

My company is looking for new #RustLang & #Python devs 😋

We are building an open-source e2e encrypted file sharing software: https://github.com/scille/parsec-cloud

More info: https://parsec.cloud/wp-content/uploads/2024/03/Fiche-de-poste-CDI-Ingenieur_e_developpement.pdf

🌎 France in full remote
⏰ Full-time
💲 36k-63k€

Retoot appreciated 🙏

#hiring #job #remotework


Hey #rust #rustlang bubble - I am giving up maintainership of the "config" crate: https://github.com/mehcode/config-rs/issues/549

If someone wants to take over, now's your time.

#maintainer #github #repository :boost_ok: 🦀 :rust: :rustcrab:

Please boost to your rustlang bubbles.


A few weeks ago, I introduced and fixed a bug where I accidentally checked if a string literal, instead of a vector, was empty, jokingly saying that I blamed Clippy for not having a lint against it. Following a suggestion from @zeenix, I created a feature request, and it's now actually implemented.
This means that Clippy will now warn you if you try to call `is_empty` on a string. https://rust-lang.github.io/rust-clippy/master/index.html#/const_is_empty

Clippy is really amazing.

#Rust #Rustlang


LLVM CFI and Cross-Language LLVM CFI Support for Rust, https://bughunters.google.com/blog/4805571163848704/llvm-cfi-and-cross-language-llvm-cfi-support-for-rust.

> add LLVM CFI and cross-language LLVM CFI (and LLVM KCFI and cross-language LLVM KCFI) to the Rust compiler as part of our work in the Rust Exploit Mitigations Project Group. This is the first cross-language, fine-grained, forward-edge control flow protection implementation for mixed-language binaries that we know of.

Really interesting project.

#RustLang #llvm #security #safety #ffi


Does anybody have a good idea how one can verify that your rust compiler and the FFI code you interact with use the same libc?

Some of our rust code inside mesa will allocate/deallocate code indirectly via `malloc`/`free` and I don't think we really want to mix and match across different libc impls here.

So we want to figure out at configure or compiler time that everything uses the same libc.

#rust #rustlang


The new GStreamer 1.24 release is also the first that has a Rust component as part of core, in addition to all the plugins that were already part of previous releases.

https://gstreamer.freedesktop.org/releases/1.24/#ptp

https://floss.social/@gstreamer/112041532645538483

#GStreamer #RustLang #Rust


📢 GStreamer 1.24 is out - a new major feature release of your favourite multimedia framework! 🕺🏼💃🏼🎉

Check out the release notes for details of all the exciting new features and improvements we have been working on:

https://gstreamer.freedesktop.org/releases/1.24/

Enjoy!

📦 Binary packages for Windows, macOS, iOS and Android are now available at https://gstreamer.freedesktop.org/download/

#GStreamer #Release #opensource #FreeSoftware #Multimedia



Over the last months the Rust/cargo support in meson improved a lot.

It's now ready to build and install a GTK4 Rust application with around 70 dependencies without having to write almost any custom build glue for the dependencies.

https://github.com/sdroege/mandelbrot#meson-build

The application in question is just a small experiment of mine for rayon and GTK4 input handling / rendering. The more or less same should work for other GTK4 applications at this point.

All this still depends on two unmerged meson PRs, but it's a huge step forward from the situation just a few months ago.

Thanks to the hard work of @xclaesse and dcbaker!

I hope in the future this will allow GNOME applications written in Rust to have a less strange and fragile build setup than what they have right now with mixing cargo and meson.

#rustlang #rust #gtk #gnome #meson #mesonbuild


Do you use Matrix for chatting? Do you like Vim? I got the perfect tool for you. ✨

📨 **iamb**: A Matrix client for Vim addicts.
💬 Use Vim keybindings for message editing, window navigation, and tab management in your terminal!

🔗 Docs: https://iamb.chat
⭐ GitHub: https://github.com/ulyssa/iamb

🦀 @matrix + @ratatui_rs

#rustlang #tui #ratatui #matrix #client #messaging #vim #neovim #terminal


In the past few weeks, I spent a bit of time on a set of #OpenPGP hobby projects around #rpgp (https://github.com/rpgp/rpgp/). Today I'm happy to announce:

rsop v0.1.0 (https://crates.io/crates/rsop), an early stage "stateless OpenPGP" tool based on rpgp.

Relatedly, I also released rpgpie 🦀️🔐🥧 v0.0.1 (https://crates.io/crates/rpgpie), an experimental high level OpenPGP API based on rpgp (rsop is built on top of rpgpie).

#PGP #Rust #rustlang


Hm...I'm getting the impression that #Rust is increasingly met with a refusal by some people (it's an almost _hateful_ attitude sometimes).

I wonder why. Of course there are a lot of layers to it, but one is definitely that Rust has gotten a lot more exposure to people and so there are just a lot more potential `match`es that lead to Err(()) and that's Ok(()) (sorry, pun intended).

But I wonder, if there's more to it than what meets the eye (feeling excluded/alienated/left behind?).

#RustLang


#rustlang is coming into @thunderbird now too! I loved Thunderbird back in the day but--as acknowledged in this talk--it has fallen behind its competitors over time. Excited to see it gaining ground again!

Here's a talk about Rust in Thunderbird: https://fosdem.org/2024/schedule/event/fosdem-2024-2469-thunderbird-how-to-exchange-rot-for-rust/


A couple of month ago, I opened an issue suggesting a new Clippy lint for rust. (Recommending against using try_into() when into() is available.

Someone implemented it and it recently reached stable with 1.76, I'm surprised at how many times this lint triggered in our codebases 😅.

I guess that means that this lint is useful!

https://github.com/rust-lang/rust-clippy/issues/11577

#rust #rustlang #clippy


I mistyped cago instead of cargo and now I want to either unlearn Spanish or unsee my typo. That's a worse typo than both gst-insect-1.0 instead of gst-inspect-1.0, and gst-lunch-1.0 instead of gst-launch-1.0.

#RustLang #Typo #Puns


Rust web frameworks have subpar error reporting

https://www.lpalmieri.com/posts/rust-web-frameworks-have-subpar-error-reporting/

Discussions: https://discu.eu/q/https://www.lpalmieri.com/posts/rust-web-frameworks-have-subpar-error-reporting/

#programming #rustlang


My reaction when I discover a meson.build script running "cargo build" in the repository of the first example program I opened from the ones listed on the gtk-rs documentation page.

Is this common in the rust world when interacting with primarily C based libraries?

#rust #gtk #rustlang


✨ Making Rust binaries smaller by default

👉 "The PR has been merged a week ago, and it is now in nightly! 🎉" 😊

https://kobzol.github.io/rust/cargo/2024/01/23/making-rust-binaries-smaller-by-default.html

#rustlang #rust


#Hugo's slogan of being "The world’s fastest framework for building websites" is a shameless lie.

It has been raised up 3 times on Github with benchmarks showing that other full-featured static site generators like #Zola (#Rust) are faster, sometimes by 10x. Each time, the issue is closed and locked.

I migrated a couple of websites from Hugo to Zola and won't look back.

Feel free to ping me if you need any help with Zola 🥰

https://www.getzola.org/

#RustLang @kubikpixel


We have just issued the first #release of #sshd-openpgp-auth and #ssh-openpgp-auth.

Using this server and client-side tooling it is possible to manage the #authentication of #SSH host keys with the help of an #OpenPGP certificate as trust anchor.

https://crates.io/crates/sshd-openpgp-auth

https://crates.io/crates/ssh-openpgp-auth

Many thanks to @wiktor for the great collaboration and #NLnet / #NGIAssure for funding this work!

#DNS #KeyOxide #KnownHosts #OpenSSH #Rustlang #Software #WebKeyDirectory #WebOfTrust #WKD #WoT