MarsRaw / mars-raw-utils

Utilities for working with publicly available raw MSL & Mars2020 images
MIT License
45 stars 10 forks source link

Async downloads #25

Closed alphastrata closed 2 years ago

alphastrata commented 2 years ago

Feature: Async downloads

I've tried to touch as little code as possible to get this happening..

Probably best summed up with a demonstration

notes:

todo

ideally for other maintainers..

kmgill commented 2 years ago

I'll have to resolve the conflicts as I went and applied clippy suggestions between when you forked and the pull request. I did intentionally choose to do serial downloads, but only because of my inexperience with Rust async despite this sort of process begging for it. It will be good for my own education to study the changes you made post-merge.

alphastrata commented 2 years ago

I see!

Well, the good news is that async in rust is actually a LOT easier than in python (idk about Java..)

I suspect the largest number of clippy conflicts are going to idiomatic ones (as mentioned, I bumped the rust edition, to get the newest ones).

There is still much I'd love to chip away at across this, and your other rust repos -- Can certainly see how this and the last merge to sciimg are on the larger side, so, I'll try to be more selective on future work to avoid such a large number of changes etc.