Cancan state management and migration

Hey all,

I’ve been looking at Cancan’s binary relational implementation and I was wondering how is state persisted between canister upgrades?

Currently main.go calls these 2 functions from states but afaik they’re use a base library that’s not implemented.

I also had a look at matthew hammer’s implementation, which still has stable memory as an upcoming feature

If the features from the standard library aren’t ready, is there a recommended way to do for now?