Repository navigation
fix: remove transitive dependency on aws-lc-rs - #983
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request resolves a critical build failure on Windows systems caused by a transitive dependency on Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request correctly identifies and fixes a build issue on Windows by removing the transitive dependency on aws-lc-rs. This is achieved by disabling default features for reqwest. However, this change also disables essential features like TLS support and content compression. My review includes a critical suggestion to re-enable TLS using native-tls to ensure HTTPS requests continue to work, and also re-enables compression features for better performance.
Note: Security Review has been skipped due to the limited scope of the PR.
| reqwest = { version = "0.13.1", default-features = false, features = [ | ||
| "http2", | ||
| "charset", | ||
| "system-proxy", | ||
| ] } |
There was a problem hiding this comment.
By disabling default features, you've also disabled TLS support and content compression features like gzip, brotli, and deflate. TLS is critical for HTTPS requests to work, for example when downloading EmmyLua definitions. The compression features are important for performance.
As you mentioned in the PR description, you should enable an alternative TLS backend. I'd recommend native-tls as it's a good cross-platform choice that avoids the aws-lc-rs dependency issue. I've also added back the compression features.
| reqwest = { version = "0.13.1", default-features = false, features = [ | |
| "http2", | |
| "charset", | |
| "system-proxy", | |
| ] } | |
| reqwest = { version = "0.13.1", default-features = false, features = [ | |
| "http2", | |
| "charset", | |
| "system-proxy", | |
| "native-tls", | |
| "gzip", | |
| "brotli", | |
| "deflate" | |
| ] } |
There was a problem hiding this comment.
This review comment needs to be checked:
The proposed compression features are not part of reqwest's default feature set - this seems like an LLM hallucination.
I've enabled native-tls-vendored for now (as native-tls requires openssl). However, this should probably be configurable via a feature flag.
07e9475 to
292f65e
Compare
292f65e to
61173ce
Compare
|
|
That sounds reasonable. |
|
@CppCXY any plans on pushing a |
The next release date is April 1st, April Fools' Day. |
reqwesthas recently changed their default TLS provider torustls, which pulls in a dependency onaws-lc-rsand causes linking errors when trying to build on Windows.See also:
aws-lc-sysforces CMake/NASM/clang even with--no-default-features -F rustlsseanmonstar/reqwest#2937Because of this, bumping the
emmylua_checkdependency causes a Lux build failure on Windows:If TLS support is needed, I'd recommend to enable one of the following features instead of the
default-tls(akarustls):rustls-no-providernative-tlsnative-tls-vendored(e.g. enabled via avendoredfeature flag)