Add support for ordered map representation of objects#12
Add support for ordered map representation of objects#12farlepet wants to merge 1 commit intorhysd:masterfrom
Conversation
This adds a new feature `ordered-map` that will use an IndexMap instead of HashMap in order to preserve the order of items in an object. This features is disabled by default.
|
An alternative to having Looking at the code, this could be a minimally intrusive change in |
|
Yeah, back when I originally made this change, it was sort of a quick proof-of-concept to make the ordering more deterministic for a project I was working on. I no longer work at that company, so I no longer have any need for this personally (though if something like this was more widely desirable for this crate I still wouldn't mind helping out). |
This adds a new feature
ordered-mapthat will use an IndexMap instead of HashMap in order to preserve the order of items in an object. This features is disabled by default.This still needs work on the documentation side of things, and perhaps any minor cleanup. I just wanted to put it up as a draft to get some feedback on whether this would be accepted at all (I understand if the consensus is that this doesn't belong in this minimal library).