1
8
submitted 2 days ago by [email protected] to c/[email protected]
2
43
crates.io: development update (blog.rust-lang.org)
submitted 4 days ago by [email protected] to c/[email protected]
3
14
submitted 3 days ago by [email protected] to c/[email protected]

An interesting article that lays out a problem and goes through a few different solutions, some of which I haven't thought about much before.

I'm working on a video game in Rust, and I'm running into this kind of modelling problem when it comes to keeping track of the game state. So far I've refactored something that resembles Approach 5 into something that looks more like Approach 3. As I get more confident about the final shape of the data, it (seemingly) becomes a better idea to represent it in a more structured way.

4
19
submitted 5 days ago by [email protected] to c/[email protected]
5
11
This Week in Rust 607 (this-week-in-rust.org)
submitted 5 days ago by [email protected] to c/[email protected]
6
26
Stabilizing naked functions (blog.rust-lang.org)
submitted 1 week ago by [email protected] to c/[email protected]
7
17
submitted 1 week ago by [email protected] to c/[email protected]
8
9
This Week in Rust 606 (this-week-in-rust.org)
submitted 1 week ago by [email protected] to c/[email protected]
9
11
submitted 2 weeks ago by [email protected] to c/[email protected]
10
11
This Week in Rust 605 (this-week-in-rust.org)
submitted 2 weeks ago by [email protected] to c/[email protected]
11
27
submitted 2 weeks ago by [email protected] to c/[email protected]
12
69
submitted 2 weeks ago by [email protected] to c/[email protected]
13
3
submitted 2 weeks ago* (last edited 2 weeks ago) by [email protected] to c/[email protected]

Just added some serious discipline to CharmGuard, an open-source focus assistant in @rust!
✨ Now blocks distracting apps during deep work using:
- sysinfo to monitor processes
- A YAML blocklist of "uh-oh" apps
- Instant reports when temptation strikes πŸ‘€
CLI-native, structured logs, GitHub CI, and... sass. Like a librarian judging your tabs β˜•πŸ’»
πŸ“Ž https://github.com/zosob/charmguard.git
❀️ to Hannah for the original spark!
#RustLang #OpenSource #DigitalMinimalism #Productivity #FocusApp #CLI

14
26
submitted 2 weeks ago by [email protected] to c/[email protected]
15
10
submitted 3 weeks ago by [email protected] to c/[email protected]
16
34
submitted 3 weeks ago by [email protected] to c/[email protected]
17
2
submitted 3 weeks ago* (last edited 2 weeks ago) by [email protected] to c/[email protected]

β˜• Built LogSniff: a @rust CLI that parses logs, exports to CSV, runs Python ML, and plots anomalies.
Next up: real-time alerts & regex rules.
Because fragile stacks deserve a sip & a side-eye.

#RustLang #CyberSecurity #CLItools #MLops #TeaDrivenDev πŸ«–πŸ¦€πŸ“Š

18
13
submitted 3 weeks ago by [email protected] to c/[email protected]
19
2
submitted 3 weeks ago* (last edited 2 weeks ago) by [email protected] to c/[email protected]

You ever write a @rust game where the player walks into a dungeon, gets punched in the face by a goblin, drinks a healing potion like it’s chamomile, and keeps going like nothing happened?

Because I just did.

Structs, enums, and reckless bravery: the perfect tea blend.
πŸ§Œβœ¨πŸ«–

#RustLang #TeaPoweredCoding #TextAdventure #buildinpublic #TerminalGaming

20
-6
submitted 3 weeks ago by [email protected] to c/[email protected]
21
19
submitted 3 weeks ago by [email protected] to c/[email protected]
22
51
submitted 4 weeks ago by [email protected] to c/[email protected]
23
13
submitted 4 weeks ago by [email protected] to c/[email protected]

Maybe the question is not well written, but it's because I do not really know what's happening in here. I'm learning Rust, I'm doing pretty good, but this is the second time that stomp with this.

First, I thought that only the Add trait would be enough, but the LSP keep saying me this if I do not add the "restriction", as far as I know.

What I do not get is what <Output = T> is. I know that is using the type T, but why it is assigned to Output?

The first time that I saw something similar was in the Rust book that comes with rustup, just look at the next function signature

Thank you for you help, you are awesome.

24
8
submitted 4 weeks ago by [email protected] to c/[email protected]
25
11
submitted 4 weeks ago by [email protected] to c/[email protected]

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

I've found this to be pretty useful when needing to do recursive / multi-file search and replace. Also has bindings to work within terminal text editors like vim and helix.

Uses rust and ripgrep under the hood for speed.

view more: next β€Ί

Rust

7159 readers
2 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 2 years ago
MODERATORS