bd103, to bevy
@bd103@hachyderm.io avatar

In #bevy 0.14 some traits such as AssetReader have been converted to use the recently stabilized async fn as compared to returning a BoxedFuture. This change unfortunately makes these traits no longer object safe. To fix this, erased versions of the traits were created (such as ErasedAssetReader) that do support being used with dyn.

I opened https://internals.rust-lang.org/t/add-diagnostic-not-object-safe/20973, which is a proposal to add #[diagnostic::not_object_safe] to point users towards the erased forms. Check it out! #rust

teajaygrey, to rust
@teajaygrey@rap.social avatar

In yet another example of things which do not inspire confidence in Rust, nor things written in Rust:

"This port has been deleted. This page will exist till another port with the name 'rust' comes into existence."

o.O

hko, to rust
@hko@fosstodon.org avatar

I'm excited to announce the release of oct v0.11.0 🚀️

oct is a tool for inspecting, configuring and using cards 🔒 (https://crates.io/crates/openpgp-card-tools)

oct can now set up cards in mode, the text output format was improved for readability, and some minor bugs were fixed.

Finally, version 0.11.0 uses , a pure OpenPGP library 🦀.
As a result, the binary on links to four fewer dynamic libraries, while at the same time being 10% smaller.

ekuber, to rust
@ekuber@hachyderm.io avatar

Niko Matsakis, as usual, with insightful ideas about how to evolve Rust's lifetimes to make them both more powerful and easier to use.
https://smallcultfollowing.com/babysteps/blog/2024/06/02/the-borrow-checker-within/

jakub, to security
@jakub@jirutka.cz avatar

I noticed that automatically downloads a NodeJS binary from nodejs.org without asking or even informing the user about it. Right after starting it and opening a file, without doing anything else. Then it installs some packages from npmjs via npm. And there’s no option to disable it.

THIS IS ABSOLUTELY UNACCEPTABLE! I can’t stress enough how bad this is from point of view. And not just that, consider users on metered connections


https://github.com/zed-industries/zed/issues/12589

deavid, to devlog
@deavid@techhub.social avatar

https://www.youtube.com/watch?v=IiYkzltQfkg - Unhaunter Demo - Release v0.2.2 - 2024-06-02

Unhaunter is a FOSS 2D isometric game about paranormal investigation - I'm still on the early stages of development.

LGUG2Z, to rust
@LGUG2Z@hachyderm.io avatar
kubikpixel, to rust German
@kubikpixel@chaos.social avatar

Ja und Nein, denn Rust ist im grunde sicherer aber auch das kommt darauf an wie mensch es umsetzt. Ich vertraue Rust mehr als anderes Coding, ich schau mir die Libs-Daten an.

»Speichersicherheit – Fast 20 Prozent aller Rust-Pakete sind potenziell unsicher:
Nach Angaben der Rust Foundation verwendet etwa jedes fünfte Rust-Paket das Unsafe-Keyword. Meistens werden dadurch Code oder Bibliotheken von Drittanbietern aufgerufen.«

🦀 https://www.golem.de/news/speichersicherheit-fast-20-prozent-aller-rust-pakete-sind-potenziell-unsicher-2405-185452.html


Soblow, to rust
@Soblow@eldritch.cafe avatar

Is there a way in Rust to use standard lib traits (Ord, Eq, Into/From...) with async functions?
Perhaps a crate or something?
Or must it be a separate function implemented for the structs?

dln, to rust
@dln@mastodon.social avatar

demo running nicely on Arch Linux using Proton Experimental.

This is so wonderful, @h3r2tic @anaopara - so excited for the release!

https://store.steampowered.com/app/2198150/Tiny_Glade/

jarkko, to rust
@jarkko@social.kernel.org avatar

I think there would be still space for systems programming language with a constraint from day zero that it would 1:1 compatible with plain C”s binary layout and memory model:

  1. Roughly just .text, .bss, .rodata and ,data.
  2. No symbol mangling at all.

All the memory safety etc. fancy features would be then designed within exactly those constraints.

is essentially a derivative of C++ when compiled to binary, which does not really make it a strong competitor for plain #C. It can substitute C in many cases for sure, just like C++ did, but there’s always need for minimal systems programming language, which also looks elegant in binary, not just in source code.

A compiled C program can be quite easily understood with a binary with no debug symbols at all if you understand the CPU architecture well enough. That is, and will be a strong asset for C.

vinc, to rust
@vinc@mastodon.social avatar

Today, I'm improving the network logs in my hobby operating system

jgayfer, to gamedev
@jgayfer@fosstodon.org avatar

I published my first plugin for Bevy! 🎉

🕯️bevy_light_2d is a general purpose 2d lighting crate for Bevy.

It’s designed to be simple to use, yet expressive enough to fit a variety of use cases.

⭐️ GitHub https://github.com/jgayfer/bevy_light_2d

triskelion, to rust
@triskelion@floss.social avatar

Hey RIIR enthusiasts, sorry to disappoint you, but LLVM and glibc are not written in . Feel free to express your frustrations xD

brokenix, to rust
@brokenix@emacs.ch avatar

It will all come down to how well the interaction between the kernel core structures and lifetime rules that are written in C can be mapped into Rust structures and lifetime rules... That's going to take a lot of careful work by the developers wanting to hook this all up, and I wish them the best of luck.

https://arstechnica.com/gadgets/2021/03/linus-torvalds-weighs-in-on-rust-language-in-the-linux-kernel/

brokenix, to rust
@brokenix@emacs.ch avatar
markstos, to rust
@markstos@urbanists.social avatar

I don't understand this error message:

 Updating crates.io index  
error: failed to select a version for the requirement `bindgen = "=0.69.4"`  
candidate versions found which didn't match: 0.65.1, 0.64.0, 0.63.0, ...  

If I run crate search bindgen, it shows that v0.69.4 clearly exists.

Cargo.toml contains:

[build-dependencies]
bindgen = "0.69.4"

gregorni, to rust
@gregorni@fosstodon.org avatar

Me:

  • sees a new GNOME project that is set to replace an older one
  • checks out what language it's written in…

…aaannd it's Rust 🦀

kubikpixel, to rust
@kubikpixel@chaos.social avatar

»Prusti is an automated program verifier for Rust, based on the Viper infrastructure. It leverages Rust's strong type guarantees to simplify the specification and verification of Rust programs.«

Do any of you know this and use it or are there "better" or even integrated tools for this, if such a thing is needed at all?

🦀 https://www.pm.inf.ethz.ch/research/prusti.html


ponda, to rust
@ponda@mastodon.online avatar

#C compiler on error: Line 45: segfault 0x00000634634
compiler on error: There is an issue with your code in the line 45, see here: [you code]. To fix it you simply have to do this and this, like that [fixed code]. Please have a nice day!

pepicrft, to elixir
@pepicrft@mastodon.social avatar

Bridging #Elixir and #Rust is so convenient with Rustler. We are using it in @tuist to use an S3 SDK from Elixir

https://github.com/rusterlium/rustler

11thJeff, to rust
@11thJeff@mastodon.social avatar

I would surprise absolutely no-one to learn that the largest user of the 'unsafe' keyword is Windows.
, you've JScripted us again!
https://developers.slashdot.org/story/24/05/25/2250236/rust-foundation-reports-20-of-rust-crates-use-unsafe-keyword

dcz, to rust
@dcz@fosstodon.org avatar

Trying to write a exploration tool. I've been putting it away because GUIs are painful.

Now trying again: looks fine, but not clear how to style tables.

Maybe I'll go back to . The idea of callbacks can be annoying, but at least styling is a breeze. You can even put widgets inside cells!

It turns out that making GUI is hard.

herberticus, to rust
@herberticus@fosstodon.org avatar

Wow, I'm blown away - thank you so much for the warm response! Advanced Hands-on Rust is atop the publisher's best sellers list already!

I've started work on the next beta release - fixing bugs, improving code, updating the Bevy version and tuning the next chapter. (Beta readers get every update including the final release)

https://pragprog.com/titles/hwmrust/advanced-hands-on-rust/

breadly, to rust
@breadly@eldritch.cafe avatar

If you're not aware of this yet, JetBrains has recently released the stable version of their new IDE, RustRover.
And they've also released it with a free license (for non-commercial use).
https://www.jetbrains.com/rust/

#JetBrains #Rust #RustRover

  • All
  • Subscribed
  • Moderated
  • Favorites
  • anitta
  • thenastyranch
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • ngwrru68w68
  • megavids
  • magazineikmin
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • provamag3
  • tester
  • Leos
  • JUstTest
  • All magazines