this post was submitted on 21 Apr 2024
21 points (92.0% liked)
Rust
6041 readers
7 users here now
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Wormhole
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
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I'm still working on a benchmark for my wordle solver. The thing itself works, but I want it to print statuses while benching.
I cannot do it. I've spent hours on this, even tried to make the bench async and run it in a separate Tokio task. I cannot share my bench strict over a thread, and cloning is impossible too, because of something.
Sometimes, the lifetime and ownership stuff of rust really gets annoying. C would've just done the stuff and be done with it. (Maybe)
I you share your code here, maybe someone can help.
The whole code is here
(It does not compile right now)
I understand why it does not work, but I don't know how to achieve what I'm looking for.
This is the code snippet from the binary:
From the CI