ferristseng / rust-ipfs-api

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

Upgrade actix to v1, bump ipfs-api to v0.5.2 #33

Closed sameer closed 5 years ago

sameer commented 5 years ago

A bunch of things have changed with actix in v1 but I'm trying to avoid changing too much.

ferristseng commented 5 years ago

The actix authors replaced failure with derive_more because actix errors are now !Send + !Sync so I had to do that here as well. I'm up for conditionally choosing derive_more or failure with cfg_if(hyper/actix), just thought it would make error.rs a lot longer.

This is pretty unfortunate, but I think we should support failure for hyper. #17 added failure, and I'm assuming people are still depending on that behavior. Everything else looks good though, thank you!

sameer commented 5 years ago

Ok, I've conditionally enabled failure derives for hyper. Turned out to be not as bad as I thought.

ferristseng commented 5 years ago

Thanks for making that change @sameer!