Closed adamchalmers closed 1 year ago
@adamchalmers Thank you for contributing but the tests are failing so we can't merge the PR. @fayzanx can you have a look at it?
Ran the tests locally and everything is running fine. The tests are failing because the github action is running in @adamchalmers repo that doesn't have a token and the token is required to do batch
lookup.
@fayzanx will let you have a final look before merging. Waiting for your approval.
@adamchalmers thanks again for highlighting the issue and contributing 🙏🏽 I'll release the new crate as soon as we merge this and will let you know.
Thanks! By the way, I'm sorry for all the formatting changes, I forgot to disable format-on-save in my IDE. I've amended the PR to remove the formatting changes.
Alternatively, y'all could copy these changes into a branch in the ipinfo/rust project, then CI could test my changes while pulling your tokens etc to actually pass the tests :)
OK, bumping reqwest to 0.11 breaks existing users who were using it an async context with block_on. It panics with Cannot drop a runtime in a context where blocking is not allowed. This happens when a runtime is dropped from within an asynchronous context.
The only way to properly fix this was to add async support, so, here's a PR to do that! It's very straightforward.
@adamchalmers thanks again for contributing. I've released the latest crate 1.1.0
you can use that now.
Thanks! I think this is a breaking change as it changes a method to async which was not before. So shouldn't it be v2.0 not v1.1?
@adamchalmers thanks for pointing it out, totally my bad 🙏🏽 . I've yanked the 1.1.0
updated examples and releasing 2.0.0
@adamchalmers thanks for saving the day again, I've released the 2.0.0
Happy to help. Thanks for responding to all my concerns so quickly!
Hi! Thanks very much for making this crate.
cargo audit
indicates that it pulls in several dependencies which have CVEs:I've fixed this by bumping the crate versions. All in all, it's a very small PR. If you merge it, could you please also publish a new version of the crate, so that I can pull it into my main project? Until then I'll use a fork. No real rush, but I'm sure the broad Rust community would appreciate it :) Thanks very much and have a good weekend!