stable-structures
stable-structures copied to clipboard
missing/outdated crate documentation
- [x] romans blog, the crate docs and the examples are not in sync. this is mainly around the fact that
StableBTreeMapdoes not require devs to specify a bound anymore - [ ] there aren't examples for how to use the library except for
StableMinHeapandStableBTreeMap - [ ]
StableVecrequiresBound::Bound, which is not documented and compiles, but throws runtime errors - [ ] more docs and examples around schema upgrades and what pitfalls to avoid
[ ] Mention that MemoryManager should be instantiated only once unless you know that you are doing (TM)
in general, i think both the DX and docs could be improved. this is a crate that is heavily used, but not very accessible IMO.
IIRC @keplervital has some tooling that would improve DX, like a storable macro and wrappers around the StableBTreeMap that provide indices and other convenient functionalities
tackled in https://github.com/dfinity/stable-structures/pull/284