You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature flag to enforce compiling with external boringssl #1266
Would you be willing to add an explicit feature flag that says we're compiling with an external boringssl, or possibly consider removing the vendored boringssl from the quiche crate?
This came up while we are investigating switching how Fuchsia depends on a fork of the quiche git repository over to the published quiche on crates.io. We review the code whenever we update our vendored dependencies, but we are separately maintaining our boringssl version to stay near tip of tree. The vendored boringssl appears to now be about 7 months out of date.
In order to use an external boringssl, we need to both have the rust feature flag boringssl-vendored enabled, as well as having the environment variable QUICHE_BSSL_PATH set to point at our boringssl. We have some concerns that if you ever decided to change how how you find the library, say by renaming the environment variable to QUICHE_BORINGSSL_PATH, it could be easy to miss in review. I believe this would result in us linking against your vendored version, rather than the one we maintain.
While I doubt you'd actually make this change, it might help us be a bit more resilient if we could have a cargo feature flag to explicitly state we want to use an external boringssl. This is because cargo will complain if we specify a feature flag that no longer exists, as opposed to an environment variable where you'd have to explicitly check if we're using the old environment variable name.
An even more robust way to protect against this scenario would be to remove the vendored boringssl altogether, and instead optionally enable boringssl-boring-crate feature flag by default. We could then disable this feature, and guarantee during the vendoring process that we have not pulled in the boring crate.
Closing as done. #2080 (80c5cfe) removed the vendored BoringSSL from the quiche crate in 0.29.0, which was one of the options suggested here. BoringSSL now comes from the boring-sys crate, and the README describes selecting an external tree with BORING_BSSL_PATH.
Activity
ghedo commentedon Nov 25, 2026
Closing as done. #2080 (80c5cfe) removed the vendored BoringSSL from the quiche crate in 0.29.0, which was one of the options suggested here. BoringSSL now comes from the boring-sys crate, and the README describes selecting an external tree with
BORING_BSSL_PATH.