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

bk1e,
@bk1e@mastodon.social avatar

@teajaygrey There’s a Trac ticket saying it’s not really deleted and at least one other package has the same problem: https://trac.macports.org/ticket/70131

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.

Larvitz,
@Larvitz@burningboard.net avatar

@hko awesome. I use the openpgp-card-agent on 5 machines already and it made my life so much easier. And oct is also an amazing tool when having to deal with opnepgp cards. Thank you so much for that awesome projects 😊

hko,
@hko@fosstodon.org avatar

@Larvitz :blobcatheart:

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/

Alonely0,
@Alonely0@mastodon.social avatar

@ekuber @mcc that was mara with super let iirc.

mcc,
@mcc@mastodon.social avatar

@Alonely0 @ekuber i would pay an extra five dollars per month for access to "premium" let statements

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

kimschulz,
@kimschulz@social.data.coop avatar

@jakub
Zed's dead baby, Zed's dead.
@chx

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

@khalidabuhakmeh do you know if any folks working for JetBrains are using komorebi? 😅

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@LGUG2Z I can ask :)

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?

kornel,
@kornel@mastodon.social avatar

@Soblow It's not possible. These traits require returning result immediately, and this is their guarantee that cannot be changed. You need to create your own methods for this, or preload data ahead of time.

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


kubikpixel,
@kubikpixel@chaos.social avatar

@Denian ja auch meine Meinung und auch deswegen gepostet – Technik innerhalb von "Sekunden" neu zu erfinden ist einfach eine falsche Illusion 🤷‍♂️

Denian,
@Denian@chaos.social avatar

@kubikpixel Sehr schade finde ich, dass der Artikel nicht darauf eingeht, dass viele der "unsicheren" Pakete tatsächlich nur Wrapper sind, die explizit diese eine Fremdbibliothek einbinden und evtl. abstrahieren - also tatsächlich eine zusätzliche Sicherheitsschicht, um diese Bibliotheken möglichst einfach aktualisieren oder auswechseln zu können.

dln, to rust
@dln@mastodon.social avatar

#tinyglade 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/

#indiegame #rust #gamedev

dln,
@dln@mastodon.social avatar

@h3r2tic @anaopara a statically linked binary might serve you well - with all the shenanigans going on in the library forests of ubuntu vs arch/steamdeck vs fedora and friends. Also OpenBSD. Can we make it uefi bootable? On a PS3? 😆

h3r2tic,
@h3r2tic@mastodon.gamedev.place avatar

@dln @anaopara I'll investigate what can be statically linked, and also prune deps, but can't nuke all: will still have to depend on graphics drivers 👀

Unless we write a software renderer of course, like in good old Quake times!

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.

kornel,
@kornel@mastodon.social avatar

@jarkko Safety is like a thread you start to pull, and pulls more and more stuff. You need collections for bound checks and robust realloc, but void* casts complicate verification, so you need generics for collections. To reduce bounds checks, you need iterators. Safe unions require sum types. Unsafe free() can be replaced with destructors, which need owned+borrowed pointers. You need thread safety too, etc.
There isn't much that can be removed from Rust without creating holes in the safety.

mobileatom, to rust
@mobileatom@flipboard.com avatar

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

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

#gamedev #bevy #rustlang #rust

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