Open will-bitlight opened 1 month ago
I do agree with the proposal. Can you please work on the implementation?
I do agree with the proposal. Can you please work on the implementation?
No problem, I will implement our proposal in the above Repo :)
Background
In
rgb-std
, we provide memory-based state storage containers such asMemStash
andMem*
. We have also implemented a feature namedfs
for these containers to provide persistent storage. Inrgb-std
, this feature is optional and not enabled by default. However, inrgb
(rgb-runtime), we have enabled thefs
feature by default at the workspace level. This requires downstream users, when usingrgb
, to handle the related API and configure persistent paths even if they do not need persistence.Proposal
We propose to change this behavior so that persistence for memory containers is also optional when using
rgb
. The specific changes are as follows:rgb
, do not enable thergb-std
fs
feature by workspace level.Cargo.toml
fromfs = ["serde", "bp-wallet/fs"]
tofs = ["serde", "bp-wallet/fs", "rgb-std/fs"]
.To ensure consistency of the
fs
feature, we will also synchronize the configuration changes in the following repositories:rgb
rgb-interfaces
rgb-schemata
Through these changes, we hope to provide downstream users with more flexibility, allowing them to choose whether to enable persistence features based on their needs.