mysten-infra icon indicating copy to clipboard operation
mysten-infra copied to clipboard

[serde] Add BcsSafeBTreeSet

Open lxfind opened this issue 2 years ago • 2 comments

Part of https://github.com/MystenLabs/narwhal/issues/266

lxfind avatar Sep 08 '22 23:09 lxfind

Is it possible to override the default btreemap behavior, or developer would have to explicitly annotate any use of btreemap so that they get serialized properly?

lxfind avatar Sep 09 '22 15:09 lxfind

We'd need to annotate each instance to get the behaviour that you want. Which is no different from requiring that you use this type instead of the stdlib type. At least with the annotation route we don't have to maintain a full duplicate type that already exists in the stdlib

bmwill avatar Sep 09 '22 16:09 bmwill