Rust

6011 readers
3 users here now

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

Wormhole

[email protected]

Credits

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

founded 1 year ago
MODERATORS
276
277
14
submitted 9 months ago by snaggen to c/rust
278
279
 
 

Using the Overpass API to read OSM data, parsing the data with Rust, and then drawing the map onto HTML5 canvas.

280
16
Rust Analyzer Changelog #221 (rust-analyzer.github.io)
submitted 9 months ago by snaggen to c/rust
281
282
283
48
submitted 9 months ago by starman to c/rust
 
 

Can we make a Rust program that’s as small as it’s assembler equivalent?

284
29
submitted 9 months ago by [email protected] to c/rust
 
 

The Rustup team is looking for Beta testers, particularly for fish-shell integration, Raspberry Pi and loongarch64 support.

285
286
287
19
submitted 9 months ago by snaggen to c/rust
288
289
29
submitted 9 months ago by snaggen to c/rust
290
291
 
 

Self-host your crates on your own hardware, inclusive docs with a full web UI that allows you to search and inspect your crates.

292
 
 

Monday, February 12, 2024
Ribbon and Ron Williams write:

As Redox functionality becomes more complete, we have been working hard to get a wide variety of software working.

This post will cover our porting strategy for Linux/BSD programs.

We have ported the following games and emulators:

2048
ClassiCube
DevilutionX
DOSBox
eduke32
FreeCiv
Gigalomania
Hematite
Mednafen
Neverball
OpenJK
OpenTTD
PrBoom (Doom engine)
ScummVM
Space Cadet Pinball
and others.

Porting is a major part of the Redox development effort. We are using porting as a way to prioritize and validate Redox functionality.

Currently dozens of programs and many more libraries work. Our initial focus has been on porting Rust programs, but we also recognize the importance of supporting programs written in other languages.

In last year Ribbon began the porting of more than 1000 programs and libraries to Redox! They are still work-in-progress and many require customized cross-compilation scripts or improved library support. You can see them here.

With our recent change to a Linux-compatible path format, we have removed a major hurdle to supporting Linux applications. In the future we plan to expand our POSIX support, port more Rust crates and continue to improve Relibc.

Some thought is being given to virtual machines and Wine as possible mechanisms for running proprietary binaries and possibly even proprietary drivers. However, there are no specific plans for that capability at this time.

Read Porting Strategy - Redox - Your Next(Gen) OS

293
29
submitted 9 months ago by snaggen to c/rust
294
33
Extending Rust's Effect System (blog.yoshuawuyts.com)
submitted 9 months ago by haskman to c/rust
295
23
submitted 9 months ago by snaggen to c/rust
 
 

It seems that the rust official youtube channel now have released a lot of videos from RustConf

296
104
Announcing Rust 1.76.0 (blog.rust-lang.org)
submitted 9 months ago by snaggen to c/rust
297
14
submitted 9 months ago* (last edited 9 months ago) by [email protected] to c/rust
 
 

It seems like the key_value function has been removed from Cursor in 1.78.0-nightly. I've been using this to get the key/value pair from BTreeMap::upper_bound and BTreeMap::lower_bound.

Does anyone know why this was removed and what a good idiomatic alternative would be?

Edit: In case anyone encounters the same problem and is curious what's going on (the documentation hasn't been updated to reflect the change yet), it was referred to in this issue: 107540 changed in this commit: 8ee9693. Essentially, cursors in BTreeMaps previously pointed to specific nodes in the tree whereas now they point to gaps between the nodes. To get the node values, you need to use prev or next on the cursors returned by upper_bound or lower_bound.

298
16
submitted 9 months ago by snaggen to c/rust
299
 
 

About the book:

This is Ferrous Systems' Embedded Rust on Espressif training material. It is divided into two workshops: introductory and advanced. The introductory trail will introduce you to the basics of embedded development and how to make the embedded board interact with the outside world - reacting to commands and sending sensor data.

The advanced course takes it from there to dive deeper into topics like interrupt handling, low-level peripheral access and writing your own drivers.

You can join the esp-rs community on Matrix for all technical questions and issues! The community is open to everyone.

Alternative no_std (bare metal) book:

The goal of this book is to provide a getting-started guide on using the Rust programming language with Espressif SoCs and modules using no_std (bare metal) approach.

About the ESP32-C3-DevKit-RUST-1 Dev Board:

ESP32-C3-DevKit-RUST-1 is based on the ESP32-C3, a single-core Wi-Fi and Bluetooth 5 (LE) microcontroller SoC, based on the open-source RISC-V architecture. This special board also includes the ESP32-C3-MINI-1 module, a 6DoF IMU, a temperature and humidity sensor, a Li-Ion battery charger, and a Type-C USB. The board is designed to be easily used in training sessions, demonstrating Rust capabilities with all the board peripherals.

Being open source hardware you can build it yourself or purchase it ($19.80 +$4.06 Shipping to US, 4 week delivery)

300
view more: ‹ prev next ›