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

refactor(ironfish-rust): Introduce download-params feature-flag #3961

Merged
merged 1 commit into from
Jun 12, 2023

Conversation

mat-if
Copy link
Contributor

@mat-if mat-if commented Jun 12, 2023

Summary

Due to the reqwest dependency during build, anyone building the ironfish
crate was required to have openssl available via the system, even if
they were not downloading the params. This was causing issues with the
build system, and is not a trivial fix in some scenarios.

This change marks the reqwest dependency as optional, which is only
installed if the download-params feature-flag is set. The default
behavior is, for now, to crash if no params are present.

Testing Plan

Documentation

Does this change require any updates to the Iron Fish Docs (ex. the RPC API
Reference
)? If yes, link a
related documentation pull request for the website.

[x] Yes - Info added to ironfish_rust/README.md

Breaking Change

Is this a breaking change? If yes, add notes below on why this is breaking and
what additional work is required, if any.

[ ] Yes

@mat-if mat-if changed the title fix(ironfish-rust): Use rustls instead of system openssl refactor(ironfish-rust): Introduce download-params feature-flag Jun 12, 2023
Due to the reqwest dependency during build, anyone building the ironfish
crate was required to have openssl available via the system, even if
they were not downloading the params. This was causing issues with the
build system, and is not a trivial fix in some scenarios.

This change marks the `reqwest` dependency as optional, which is only
installed if the `download-params` feature-flag is set. The default
behavior is, for now, to crash if no params are present.
@mat-if mat-if marked this pull request as ready for review June 12, 2023 18:11
@mat-if mat-if requested a review from a team as a code owner June 12, 2023 18:11
Copy link
Contributor

@EvanJRichard EvanJRichard left a comment

Choose a reason for hiding this comment

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

I like the bonus cleanup this adds.

@mat-if mat-if merged commit 1de7dcb into staging Jun 12, 2023
11 checks passed
@mat-if mat-if deleted the mat/rustls branch June 12, 2023 20:19
jowparks pushed a commit that referenced this pull request Jun 21, 2023
)

Due to the reqwest dependency during build, anyone building the ironfish
crate was required to have openssl available via the system, even if
they were not downloading the params. This was causing issues with the
build system, and is not a trivial fix in some scenarios.

This change marks the `reqwest` dependency as optional, which is only
installed if the `download-params` feature-flag is set. The default
behavior is, for now, to crash if no params are present.
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

2 participants