this post was submitted on 29 Jun 2022
23 points (92.6% liked)

Rust Programming

8140 readers
18 users here now

founded 5 years ago
MODERATORS
 

Hello all, I'm learning Rust after years of programming mainly in C/C++.

Python has a very neat shelve library: https://docs.python.org/3/library/shelve.html It's basically a dict (hash table), but is located on disk instead of memory. It's great for easy persistence and also for working with massive objects that won't fit into memory.

Is there anything similar for Rust? I could not find any, but I'm still learning Rust and could have missed it.

you are viewing a single comment's thread
view the rest of the comments
[–] brombek@lemmy.ml 4 points 2 years ago

I did not try them but perhaps you can check:

I was hoping for BerkeleyDB or Kyoto Cabinet bindings that I have used in my Ruby times for this purpose but nothing there that looks maintained.