mysten-infra
mysten-infra copied to clipboard
[serde] Add BcsSafeBTreeSet
Part of https://github.com/MystenLabs/narwhal/issues/266
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?
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