101
23
submitted 3 months ago by cm0002@lemy.lol to c/rust@programming.dev
102
7
103
8
submitted 4 months ago by nemeski@mander.xyz to c/rust@programming.dev
104
14
Diesel-async 0.9.0 (blog.weiznich.de)

I'm happy to announce the release of diesel-async 0.9. This release changes how diesel-async expects AsyncConnection::transaction calls to be written, moving from using a closure returning a boxed Future to using proper async closures.

Additionally, this release officially moves the GitHub repository from my personal space to the diesel-rs organization. As I'm one of the maintainers of Diesel, this is mostly a symbolic change.

Finally, this release fixes an unsound cast between a #[repr(C)] struct and the underlying memory as a byte slice. This cast could result in accessing the padding bytes in the struct. This vulnerability was discovered by Paolo Barbolini.

Checkout the full announcement post for more details.

I'm happy to answer questions about anything related to the release or Diesel in general.

105
10

It was a bit more quiet recently. I hope to add the libcore tests (compiled with rustc_codegen_gcc) in the CI of the Rust repo soon in order to prevent test failures from coming back at every sync: this will greatly help us to focus on feature development.

106
3
submitted 4 months ago by nemeski@mander.xyz to c/rust@programming.dev
107
37
submitted 4 months ago by qaz@lemmy.world to c/rust@programming.dev
108
12
submitted 4 months ago* (last edited 4 months ago) by ISO@lemmy.zip to c/rust@programming.dev

I checked some of the issues out, and this looks legit. Although a good chuck relates to obscure platform abstractions.

109
25
submitted 4 months ago* (last edited 4 months ago) by jamesfebin@programming.dev to c/rust@programming.dev

Chapter 2 - Let There Be a World (Procedural Generation) This chapter teaches you procedural world generation using Wave Function Collapse and Bevy.

A layered terrain system where tiles snap together based on simple rules. You'll create landscapes with dirt, grass, water, and decorative props.

By the end, you'll understand how simple constraint rules generate natural-looking game worlds and how tweaking few parameters lead to a lot of variety.

It also gently touches on rust concepts like references, lifetimes, closures, generic and trait bound. (Hoping to go deep in further chapters)

110
21
111
-4

A ~200 LOC Rust crate benchmarked against ten other languages — came out ahead of a monomorphized C++ lib by ~4× at sub-fanout dispatch. Hot loop is six instructions. Can you make it faster?

112
18
Rust Koans (users.rust-lang.org)
submitted 4 months ago by SorteKanin@feddit.dk to c/rust@programming.dev
113
29
Announcing Rust 1.95.0 (blog.rust-lang.org)
submitted 4 months ago by cm0002@lemdro.id to c/rust@programming.dev
114
11
submitted 4 months ago by hywan@programming.dev to c/rust@programming.dev

I discuss streams. It's a pretext to learn about higher-order streams, like flatten and to introduce a new stream: switch! It's very useful, and will have no secret for you.

115
57
Announcing Rust 1.95.0 (blog.rust-lang.org)
submitted 4 months ago by nemeski@mander.xyz to c/rust@programming.dev
116
21
submitted 4 months ago by BB_C@programming.dev to c/rust@programming.dev
117
12
submitted 4 months ago by SorteKanin@feddit.dk to c/rust@programming.dev
118
22
submitted 4 months ago by nemeski@mander.xyz to c/rust@programming.dev
119
17
submitted 4 months ago by cm0002@lemmings.world to c/rust@programming.dev
120
12

Cross posted from https://framapiaf.org/users/lexoyo/statuses/116334564580892728

Sidenai/sidex: VS Code rebuilt on Tauri. Same architecture, 96% smaller. Early release.
https://github.com/Sidenai/sidex

#foss #OpenSource #Rust @tauri

121
14
submitted 5 months ago by SorteKanin@feddit.dk to c/rust@programming.dev
122
3
submitted 5 months ago* (last edited 5 months ago) by cm0002@europe.pub to c/rust@programming.dev

Also vm repo

123
47

Dmitry has released the first stable version of his engine after 7 years of active development!

124
31
submitted 5 months ago by TitanNano@vger.social to c/rust@programming.dev

cross-posted from: https://vger.social/post/37291894

godot-rust goes into the next round with v0.5, just released on crates.io!

On the toolchain side:

  • We now support Rust edition 2024 and Godot 4.6 out of the box, as well as all versions >= 4.2.

  • WebAssembly support no longer needs LLVM/bindgen and is being unit-tested on CI.

  • It's now possible to depend on other godot-rust crates through rlib.

Some features added in this cycle:

Typed dictionary. Also, enums in Godot collections!

let tiles: Dictionary<Vector2i, Tile> = dict! {
   Vector2i::new(1, 2) => Tile::GRASS,
   Vector2i::new(1, 3) => Tile::WATER,
};

Non-null engine APIs:

// Instead of...
let t: Gd<Tween> = node.create_tween().unwrap();
// ...now:
let t: Gd<Tween> = node.create_tween();

Direct == &str comparison, saving allocation:

let s = StringName::from("hello");
if s == "hello" { ... }

Bitfield Debug impl:

assert_eq!(
    format!("{flags:?}"),
    "PropertyUsageFlags { EDITOR | READ_ONLY }"
);

Optional parameters -- call from GDScript as method(1) or method(1, 2):

#[func]
fn method(
    required: i32,
    #[opt(default = 100)] optional: i32,
) { ... }

Export tool button -- click in Godot's inspector to immediately execute Rust code:

#[export_tool_button(fn = Self::on_clicked, icon = "2DNodes")]
click_me: PhantomVar<Callable>, // not a physical property

We now also have a Games page showcasing projects that users made with godot-rust! And I'm still behind on adding new entries there :)

Huge thanks to the community for making this possible! Countless bug reports, PRs, and feedback based on real-world projects have helped godot-rust immensely to reach this point.

If you like the project, consider giving us a star on GitHub. As it's maintained entirely in free time without any financial backing, small GitHub Sponsor contributions are also very appreciated (Yarwin or TitanNano or Bromeon). Thanks to everyone supporting the project -- We are excited to see what will be built on v0.5!

125
17
submitted 5 months ago by SorteKanin@feddit.dk to c/rust@programming.dev

I am not the author but I've been looking for a tool like this for a long time! This looks really nice! :D

view more: ‹ prev next ›

Rust

8248 readers
19 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 3 years ago
MODERATORS