this post was submitted on 15 Aug 2023
13 points (100.0% liked)

Rust Programming

8127 readers
1 users here now

founded 5 years ago
MODERATORS
 

I want to build a small gui application in rust. What are my options for application storage? I have heard of the confi crate but I want to save a bit more than just configuration. Is there a crate that handles this for me easily?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 3 points 1 year ago

It depends on how you want to store your data. Every OS has a standard for where applications should store their data. You should store your data at the appropriate path. If you have structured data against which you want to run queries you could use a sqlite DB (the sqlx crate supports sqlite) instead of just a bunch of config files.