synlestidae / rustorrent

Modern, easy-to-use BitTorrent library for the Rust ecosystem (WIP)
Apache License 2.0
5 stars 0 forks source link

Metainfo data structure and parser #7

Closed synlestidae closed 8 years ago

synlestidae commented 8 years ago

Feel free to leave feedback and edit as needed

MatejLach commented 8 years ago

@synlestidae Great work, as always 👍 ,however I'll investigate if #8 can help here, before merging.

synlestidae commented 8 years ago

Yeah. Addressing #8 would let me get rid of fn get_u32_or_error and related functions.

synlestidae commented 8 years ago

All right I finally got around to it. Got it parsing two metainfo files. It uses TryFrom (of which I rolled my own). There is a file in this pull request, src/tests/.mod.rs.swp, that I can't delete from it since git can't seem to find it >:(

MatejLach commented 8 years ago

This is amazing work as always, thanks a lot!