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
In rgb-std, we provide memory-based state storage containers such as MemStash and Mem*. We have also implemented a feature named fs for these containers to provide persistent storage. In rgb-std, this feature is optional and not enabled by default. However, in rgb (rgb-runtime), we have enabled the fs feature by default at the workspace level. This requires downstream users, when using rgb, 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:
At the workspace level of rgb, do not enable the rgb-stdfs feature by workspace level.
Modify Cargo.toml from fs = ["serde", "bp-wallet/fs"] to fs = ["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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: