801
14
submitted 2 years ago* (last edited 2 years ago) by kia@lemmy.ca to c/rust@programming.dev

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.

802
16
803
23

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)

804
12
805
43
submitted 2 years ago* (last edited 2 years ago) by mac@programming.dev to c/rust@programming.dev
806
7
submitted 2 years ago by mac@programming.dev to c/rust@programming.dev
807
29

cross-posted from: https://sh.itjust.works/post/13993219

The concept

A streamed reading club focused on rusts The Book and becoming reasonably good rust developers through community collaboration. If you're interested, please comment so we know this's something you'd like to join in on.

A Begining

To begin, I'll be setting up a twitch stream where we read through the book together and solve some problems together related to the concepts provided. We'll be able to collaborate in chat, and talk about it here after each stream. This way, we'll be able to lean on each other or just hang out while we learn the language Lemmy uses for it's backend. Other hosts will be welcome as the end goal is to create a group of people whose goal is to support our collective growth as developers

Anybodies welcome of any skill set, whether or not they want to continue on once we get to lemmys code base. If you're completely new to rust this is a great place to start and if you already know the language we'd love to have you all the more. At the very least it's a good networking opportunity but you'll likely learn more than you thought.

Timing

Please comment your availability so we can find the best time and day to do this. As a stand-in and default though, 6:30pm EST (New York Time) on tuesday will be the start time. I'd be available on most days myself after 5pm Eastern Time (new york) though so don't hesitate to suggest another time/date.

Where?

For now, I'll be streaming this on a twitch channel I created a bit ago but never used. The link is here: https://www.twitch.tv/deerfromsmoke

Thank you @morrowind@lemmy.ml for the idea.

808
62
809
45
Let futures be futures (without.boats)
810
29
submitted 2 years ago by maegul@lemmy.ml to c/rust@programming.dev

cross-posted from: https://lemmy.ml/post/11456831

Hi all,

We've started a new community for learning rust and/or the lemmy codebase together.

Come join in: !learningrustandlemmy@lemmy.ml

The idea is that there are probably a good amount of people interested in learning rust, or, interested in contributing to or using the lemmy codebase, but find it difficult to get started ... so basically why not start a sort of study group or reading group or support channel style of community? Here's where the idea was originally suggested: https://lemmy.ml/post/11232276

We're just putting the place together and sorting out how it could work, but all kinds of inputs and levels of expertise are welcome!

811
9
812
23
813
36
814
17
Rust Analyzer Changelog #218 (rust-analyzer.github.io)
815
18

I'm not affiliated with the site, but I found this interesting. Especially the quite nuanced discussion about if rust is hard or not.

With my background in systems level safety critical hard realtime C++ (plus a bunch of functional programming as a hobby) I feel that the answer was no (for me personally). Basically learn about lifetimes and borrowing and then learn the syntax, done. (Async and unsafe are arguably harder, but again I had the requisite background for it to be mostly familiar, though haven't needed to write much unsafe yet.)

But it was very interesting hearing the other perspective as well! Why rust might feel hard if you have a background in JS/Python/Go etc.

And it was awesome to hear such a nuanced discussion on the Internet, that is truly a rare thing these days.

816
25
submitted 2 years ago* (last edited 2 years ago) by Ogeon@programming.dev to c/rust@programming.dev

Hey, folks! Here's another update for Palette, the color crate I'm maintaining. Feel free to let me know if you have any questions or feedback! I will do my best to answer.

817
10
818
35
Rust in thunderbird (thunderbird.topicbox.com)
submitted 2 years ago by morrowind@lemmy.ml to c/rust@programming.dev
819
34
820
126
821
15
822
85
submitted 2 years ago by morrowind@lemmy.ml to c/rust@programming.dev

Upto 90% for hellworld

823
-15
824
15
submitted 2 years ago by tbk@lemmy.ml to c/rust@programming.dev
825
38
view more: ‹ prev next ›

Rust

8252 readers
30 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