Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove remaining dependencies on Cargo #156

Merged
merged 1 commit into from
May 14, 2020

Conversation

kornholi
Copy link
Contributor

This replaces CargoResult with anyhow's Result, and uses SourceId from cargo_lock instead.

As far as I can tell, we lose 101 dependencies total :)

This replaces `CargoResult` with anyhow's `Result`, and uses `SourceId`
from cargo_lock instead.

As far as I can tell, we lose 101 dependencies total :)
Copy link
Member

@acmcarther acmcarther left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It feels like there are a lot of different "result" crates in the rust ecosystem... I'm impressed with this one though judging from how minimal the impact on the code was.

It looks like this CI run only took 8 min 49 sec where before the average was 13 - 16 minutes, so this is a decent sized impact.

Thanks for another great change. I'll publish a release including this change now.

@acmcarther acmcarther merged commit a4cf174 into google:master May 14, 2020
@kornholi
Copy link
Contributor Author

It feels like there are a lot of different "result" crates in the rust ecosystem...

Since all the Error trait changes landed, dtolnay's anyhow and thiserror have been getting lots of traction. In fact, the latest CargoResult is an alias to anyhow::Result.

@kornholi kornholi deleted the bye-bye-cargo branch May 14, 2020 05:55
@dfreese
Copy link
Collaborator

dfreese commented May 15, 2020

This cut a notable amount of time off of building one of our containers with cargo raze in it. Thanks @kornholi!

FYI: @smklein

This was referenced May 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants