fix(deps): resolve rustls crypto provider conflict (#143)

## Summary

- Disable default features on `google-gmail1` to avoid enabling both
`ring` and `aws-lc-rs` crypto providers
- Explicitly enable `yup-oauth2` and `aws-lc-rs` features
- Fixes runtime panic in rustls 0.23.36 which cannot auto-select when
both providers are compiled in

## Root cause

`google-gmail1` default features include `ring`, while `hyper-rustls`
default features include `aws-lc-rs`. Both get enabled on `rustls`,
causing the `CryptoProvider` ambiguity error at runtime.

## Test plan

- [ ] CI passes without rustls panic
- [ ] cull-gmail binary starts and connects successfully

🤖 Generated with [Claude Code](https://claude.com/claude-code)
This commit is contained in:
Jeremiah Russell
2026-02-11 16:10:11 +00:00
committed by GitHub
3 changed files with 3 additions and 2 deletions

1
Cargo.lock generated
View File

@@ -1702,7 +1702,6 @@ dependencies = [
"aws-lc-rs", "aws-lc-rs",
"log", "log",
"once_cell", "once_cell",
"ring",
"rustls-pki-types", "rustls-pki-types",
"rustls-webpki", "rustls-webpki",
"subtle", "subtle",

View File

@@ -29,7 +29,7 @@ config = { version = "0.15.19", default-features = false, features = [
"toml", "toml",
] } ] }
env_logger = "0.11.8" env_logger = "0.11.8"
google-gmail1 = "7.0.0" google-gmail1 = { version = "7.0.0", default-features = false, features = ["yup-oauth2", "aws-lc-rs"] }
hyper-rustls = { version = "0.27.7", features = ["http1"] } hyper-rustls = { version = "0.27.7", features = ["http1"] }
lazy-regex = "3.5.1" lazy-regex = "3.5.1"
log = "0.4.29" log = "0.4.29"

View File

@@ -46,6 +46,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- deps: update rust crate hyper-rustls to 0.27.7(pr [#139]) - deps: update rust crate hyper-rustls to 0.27.7(pr [#139])
- deps: update rust crate lazy-regex to 3.5.1(pr [#140]) - deps: update rust crate lazy-regex to 3.5.1(pr [#140])
- deps: update rust crate thiserror to 2.0.18(pr [#141]) - deps: update rust crate thiserror to 2.0.18(pr [#141])
- deps: resolve rustls crypto provider conflict(pr [#143])
## [0.0.16] - 2025-10-30 ## [0.0.16] - 2025-10-30
@@ -415,6 +416,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[#140]: https://github.com/jerus-org/cull-gmail/pull/140 [#140]: https://github.com/jerus-org/cull-gmail/pull/140
[#141]: https://github.com/jerus-org/cull-gmail/pull/141 [#141]: https://github.com/jerus-org/cull-gmail/pull/141
[#142]: https://github.com/jerus-org/cull-gmail/pull/142 [#142]: https://github.com/jerus-org/cull-gmail/pull/142
[#143]: https://github.com/jerus-org/cull-gmail/pull/143
[Unreleased]: https://github.com/jerus-org/cull-gmail/compare/v0.0.16...HEAD [Unreleased]: https://github.com/jerus-org/cull-gmail/compare/v0.0.16...HEAD
[0.0.16]: https://github.com/jerus-org/cull-gmail/compare/v0.0.15...v0.0.16 [0.0.16]: https://github.com/jerus-org/cull-gmail/compare/v0.0.15...v0.0.16
[0.0.15]: https://github.com/jerus-org/cull-gmail/compare/v0.0.14...v0.0.15 [0.0.15]: https://github.com/jerus-org/cull-gmail/compare/v0.0.14...v0.0.15