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

Clean up dependencies #98

Merged
merged 6 commits into from Jul 11, 2018
Merged

Clean up dependencies #98

merged 6 commits into from Jul 11, 2018

Conversation

@eoger
Copy link
Contributor

@eoger eoger commented Jul 6, 2018

This PR removes a bunch of useless cargo dependencies whose job could be done by ring (openssl, hmac, hkdf, sha256 digest).
Some openssl functions could not be replaced, but thankfully these are only used by the "browserid" code, which is now behind a browserid feature flag.

All of this means that we can build fxa_client for iOS without openssl, which makes our building process way easier and faster.
It also drops the size of the iOS universal lib from 40.5mb to 32.4mb, a 20% improvement.

@eoger
Copy link
Contributor Author

@eoger eoger commented Jul 6, 2018

I'm not really sure who to tag for review here, but feel free to drop in and have a look at the changes

@eoger eoger force-pushed the clean-up-dependencies branch from b4223a4 to c2fae20 Jul 11, 2018
@@ -8,20 +8,19 @@ base64 = "0.9.0"
byteorder = "1.2.3"
failure = "0.1.1"
failure_derive = "0.1.1"
hawk = { git = "https://github.com/eoger/rust-hawk", branch = "use-openssl" }
hawk = { version = "1.0.2", optional = true }

This comment has been minimized.

@vladikoff

vladikoff Jul 11, 2018
Contributor

👍

lazy_static = "1.0.0"
log = "0.4"
openssl = "0.10.7"
rand = "0.5.0-pre.1"
openssl = { version = "0.10.7", optional = true }

This comment has been minimized.

@vladikoff

vladikoff Jul 11, 2018
Contributor

How does that work with Android?

This comment has been minimized.

@vladikoff

vladikoff Jul 11, 2018
Contributor

Oh so it will load it when browserid is enabled

@eoger eoger merged commit 48d89ea into master Jul 11, 2018
2 checks passed
2 checks passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
@eoger eoger deleted the clean-up-dependencies branch Jul 11, 2018
@eoger eoger mentioned this pull request Jul 11, 2018
dmose added a commit to dmose/application-services that referenced this pull request Mar 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants