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

emocoder, to rust
@emocoder@hachyderm.io avatar

is a very good replacement for #C. It's fast, doesn't have a runtime, and as unreadable as C. Maybe even less readable.

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/

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.

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

kubikpixel, to rust
@kubikpixel@chaos.social avatar

«Methods Should Be Object Safe»
– by @noracodes

🤔 https://nora.codes/post/methods-should-be-object-safe/


#rust #rustlang #safe #security #coding

LGUG2Z, to rust
@LGUG2Z@hachyderm.io avatar
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?

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


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.

mobileatom, to rust
@mobileatom@flipboard.com avatar

Rust Tutorial – Learn Advanced Iterators & Pattern Matching by Building a JSON Parser.

https://www.freecodecamp.org/news/rust-tutorial-build-a-json-parser/?utm_source=flipboard&utm_medium=activitypub

Posted into Coding is Living @coding

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

vinc, to rust
@vinc@mastodon.social avatar

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

frankel, to rust
@frankel@mastodon.top avatar

Crate itertools: extra iterator adaptors, functions and macros for #Rust

https://docs.rs/itertools/latest/itertools/

hko, to rust
@hko@fosstodon.org avatar

I just released openpgp-card v0.5.0: https://crates.io/crates/openpgp-card/0.5.0

openpgp-card is a Rust client library for using card hardware security devices.

This version comes with a significantly adjusted API:
The low-level API has been moved to the "ocard" module. At the top level of the crate, more convenient abstractions are now directly available (including PIN handling for cards in KDF mode).

mobileatom, to rust
@mobileatom@flipboard.com avatar

Why Rust is emerging as developers’ favourite programming language. #rust

https://thenextweb.com/news/why-rust-developers-favourite-programming-language?utm_source=flipboard&utm_medium=activitypub

Posted into Coding is Living @coding

frankel, to Java
@frankel@mastodon.top avatar
frankel, to rust
@frankel@mastodon.top avatar
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"

  • 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