ferristseng / rust-ipfs-api

IPFS HTTP client in Rust
Apache License 2.0
247 stars 68 forks source link

Updated sizes in type definitions #8

Closed icefoxen closed 6 years ago

icefoxen commented 6 years ago

Mostly from digging through the go code in various places.

Rust doesn't really like 'usize' and 'isize' much because they're specifically the size of array indexes; more like C's size_t than int. So it can be annoying to use them on different platforms or in cross-platform API's or such. Annoyingly, Go is the exact opposite in this regard, and just uses int everywhere without a care in the world...

Anyway. Should address issue #7

ferristseng commented 6 years ago

Awesome, thank you!