Hi all, I'm learning Rust and for a project I would need a percolator library, so I thought well, why not write my own. The result is https://crates.io/crates/mokaccino and I would love to get some improvement suggestions from rustier rustaceans, as I'm sure this code is not the most idiomatic.

In particular, for some reason I can't put my finger on, I'm not 100% happy with the heavy use of Rc<str> but I'm still wondering what's the best way to avoid lot of strings allocations, as this is software heavily relying on strings.

submitted by /u/canardo59

Hi all, I'm learning Rust and for a project I would need a percolator library, so I thought well, why not write my own. The result is https://crates.io/crates/mokaccino and I would love to get some improvement suggestions from rustier rustaceans, as I'm sure this code is not the most idiomatic.

In particular, for some reason I can't put my finger on, I'm not 100% happy with the heavy use of Rc<str> but I'm still wondering what's the best way to avoid lot of strings allocations, as this is software heavily relying on strings.

submitted by /u/canardo59 [link] [comments]

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help