{"action":"created","issue":{"url":"https://api.github.com/repos/libpnet/libpnet/issues/246","repository_url":"https://api.github.com/repos/libpnet/libpnet","labels_url":"https://api.github.com/repos/libpnet/libpnet/issues/246/labels{/name}","comments_url":"https://api.github.com/repos/libpnet/libpnet/issues/246/comments","events_url":"https://api.github.com/repos/libpnet/libpnet/issues/246/events","html_url":"https://github.com/libpnet/libpnet/issues/246","id":205002228,"number":246,"title":"Consider splitting packet parsers into a separate crate","user":{"login":"moosingin3space","id":830082,"avatar_url":"https://avatars0.githubusercontent.com/u/830082?v=3","gravatar_id":"","url":"https://api.github.com/users/moosingin3space","html_url":"https://github.com/moosingin3space","followers_url":"https://api.github.com/users/moosingin3space/followers","following_url":"https://api.github.com/users/moosingin3space/following{/other_user}","gists_url":"https://api.github.com/users/moosingin3space/gists{/gist_id}","starred_url":"https://api.github.com/users/moosingin3space/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moosingin3space/subscriptions","organizations_url":"https://api.github.com/users/moosingin3space/orgs","repos_url":"https://api.github.com/users/moosingin3space/repos","events_url":"https://api.github.com/users/moosingin3space/events{/privacy}","received_events_url":"https://api.github.com/users/moosingin3space/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-02-02T21:31:57Z","updated_at":"2017-03-13T20:21:56Z","closed_at":null,"body":"For instance, the way `serde` does it (`serde` for core functionality, `serde_json` for serializing JSON data, etc) might not be a bad idea. A brief design:\r\n\r\n- `pnet` and `pnet_macros` stay mostly the way they are, except with the `backend` module removed and replaced with a `Backend` trait or similar.\r\n- `pnet_linux`, `pnet_netmap`, `pnet_bpf`, `pnet_pcap`, and `pnet_windows` crates provide backends.\r\n- A crate called `pnet_crossplatform_defaults` or similar could implement `Backend` by proxying to the `pnet_linux`, `pnet_bpf`, and `pnet_windows` crates.\r\n\r\nThoughts?"},"comment":{"url":"https://api.github.com/repos/libpnet/libpnet/issues/comments/286231425","html_url":"https://github.com/libpnet/libpnet/issues/246#issuecomment-286231425","issue_url":"https://api.github.com/repos/libpnet/libpnet/issues/246","id":286231425,"user":{"login":"moosingin3space","id":830082,"avatar_url":"https://avatars0.githubusercontent.com/u/830082?v=3","gravatar_id":"","url":"https://api.github.com/users/moosingin3space","html_url":"https://github.com/moosingin3space","followers_url":"https://api.github.com/users/moosingin3space/followers","following_url":"https://api.github.com/users/moosingin3space/following{/other_user}","gists_url":"https://api.github.com/users/moosingin3space/gists{/gist_id}","starred_url":"https://api.github.com/users/moosingin3space/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moosingin3space/subscriptions","organizations_url":"https://api.github.com/users/moosingin3space/orgs","repos_url":"https://api.github.com/users/moosingin3space/repos","events_url":"https://api.github.com/users/moosingin3space/events{/privacy}","received_events_url":"https://api.github.com/users/moosingin3space/received_events","type":"User","site_admin":false},"created_at":"2017-03-13T20:21:56Z","updated_at":"2017-03-13T20:21:56Z","body":"I'm thinking a `pnet_packet` crate that simply contains the packet types and is depended upon by `pnet`. This way, we can share low-level networking parsing infrastructure between multiple projects."}}
{"actor":{"display_login":"moosingin3space"}}