{"action":"created","issue":{"url":"https://api.github.com/repos/dhardy/hashindexed/issues/2","repository_url":"https://api.github.com/repos/dhardy/hashindexed","labels_url":"https://api.github.com/repos/dhardy/hashindexed/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/dhardy/hashindexed/issues/2/comments","events_url":"https://api.github.com/repos/dhardy/hashindexed/issues/2/events","html_url":"https://github.com/dhardy/hashindexed/issues/2","id":140053138,"number":2,"title":"Serialization impls","user":{"login":"mzabaluev","id":1198919,"avatar_url":"https://avatars.githubusercontent.com/u/1198919?v=3","gravatar_id":"","url":"https://api.github.com/users/mzabaluev","html_url":"https://github.com/mzabaluev","followers_url":"https://api.github.com/users/mzabaluev/followers","following_url":"https://api.github.com/users/mzabaluev/following{/other_user}","gists_url":"https://api.github.com/users/mzabaluev/gists{/gist_id}","starred_url":"https://api.github.com/users/mzabaluev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mzabaluev/subscriptions","organizations_url":"https://api.github.com/users/mzabaluev/orgs","repos_url":"https://api.github.com/users/mzabaluev/repos","events_url":"https://api.github.com/users/mzabaluev/events{/privacy}","received_events_url":"https://api.github.com/users/mzabaluev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-11T00:51:37Z","updated_at":"2016-03-12T12:03:04Z","closed_at":null,"body":"I'd like to add serialization/deserialization impls for Serde.\r\n\r\nWith serialized data structures, there's sometimes a mismatch between the storage format that is a sequence of structures, and an efficient in-memory representation which wants the structures to be indexed by some \"primary key\" intrinsic to the structures. It would be nice to have a sequence deserialize directly into `HashIndexed`."},"comment":{"url":"https://api.github.com/repos/dhardy/hashindexed/issues/comments/195727040","html_url":"https://github.com/dhardy/hashindexed/issues/2#issuecomment-195727040","issue_url":"https://api.github.com/repos/dhardy/hashindexed/issues/2","id":195727040,"user":{"login":"mzabaluev","id":1198919,"avatar_url":"https://avatars.githubusercontent.com/u/1198919?v=3","gravatar_id":"","url":"https://api.github.com/users/mzabaluev","html_url":"https://github.com/mzabaluev","followers_url":"https://api.github.com/users/mzabaluev/followers","following_url":"https://api.github.com/users/mzabaluev/following{/other_user}","gists_url":"https://api.github.com/users/mzabaluev/gists{/gist_id}","starred_url":"https://api.github.com/users/mzabaluev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mzabaluev/subscriptions","organizations_url":"https://api.github.com/users/mzabaluev/orgs","repos_url":"https://api.github.com/users/mzabaluev/repos","events_url":"https://api.github.com/users/mzabaluev/events{/privacy}","received_events_url":"https://api.github.com/users/mzabaluev/received_events","type":"User","site_admin":false},"created_at":"2016-03-12T12:03:04Z","updated_at":"2016-03-12T12:03:04Z","body":"Serde and rustc_serialize provide the serialization/deserialization traits for `HashSet`, because it's such a central type. With non-standard libraries, there is no alternative to providing the serialization traits in the same crate that provides the types themselves.\r\n\r\nSerde does not work with raw I/O streams, it's polymorphic on various format serializers/deserializers. Check out the documentation for [Serde](https://github.com/serde-rs/serde) on the API required. Once the serialization/deserialization traits are implemented, `IndexedHash` can be used inside data structures so that serialization for enclosing types can be generated automatically by the compiler plugin."}}