You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would propose an option to store the keys and values as a file in a human-readable format.
In my use case, I would like to have options for my application be configurable through an end user's text editor as well as in the application itself, this is very useful during development, or for power-users.
Implementation Ideas
As far as how this might be implemented, it looks like this crate already uses serde_json for WASM, so saving a JSON file instead might have less friction to implement. Similar to how other implementations are behind features (rocksdb or sled) a feature could be introduced (maybe json or human_readable?).
Other Considerations
Of course this comes with the downsides of being larger to store, and perhaps more inefficient to read/write (as well as added code complexity), but if it was in a non-default feature I think the benefits outweigh the downsides.
The text was updated successfully, but these errors were encountered:
Proposal and Use-Case
I would propose an option to store the keys and values as a file in a human-readable format.
In my use case, I would like to have options for my application be configurable through an end user's text editor as well as in the application itself, this is very useful during development, or for power-users.
Implementation Ideas
As far as how this might be implemented, it looks like this crate already uses serde_json for WASM, so saving a JSON file instead might have less friction to implement. Similar to how other implementations are behind features (
rocksdb
orsled
) a feature could be introduced (maybejson
orhuman_readable
?).Other Considerations
Of course this comes with the downsides of being larger to store, and perhaps more inefficient to read/write (as well as added code complexity), but if it was in a non-default feature I think the benefits outweigh the downsides.
The text was updated successfully, but these errors were encountered: