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

fix!: use rustls-tls as default for reqwest #672

Merged
merged 1 commit into from
Jun 27, 2024
Merged

Conversation

DDtKey
Copy link
Collaborator

@DDtKey DDtKey commented Jun 27, 2024

Closes #671

reqwest exposes a number of TLS-related features, there is no much sense to re-expose them.

Cargo features are additive (and reqwest follows this rule), so it's always possible to customize by adding reqwest dependency with desired feature-set

We can re-consider feature-set provided by testcontainers later, but currently we already depend on them through bollard: it relies on rustls and rustls-native-certs

It's even possible to make these features optional (e.g when you don't need tls support neither for docker nor reqwest).

`reqwest` exposes a number of TLS-related features, there is no much sense to re-expose them.

Cargo features are additive (and reqwest follows this rule), so it's always possible to customize by adding `reqwest` dependency with desired feature-set

We can re-consider feature-set provided by `testcontainers` later, but currently we already depend on them through `bollard`:
it relies on `rustls` and `rustls-native-certs`

It's even possible to make these features optional (e.g when you don't need tls support neither for docker nor reqwest).
Copy link

netlify bot commented Jun 27, 2024

Deploy Preview for testcontainers-rust ready!

Name Link
🔨 Latest commit 9ec27c2
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-rust/deploys/667dbab1a389530008f45d15
😎 Deploy Preview https://deploy-preview-672--testcontainers-rust.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@DDtKey DDtKey merged commit a85ce5c into main Jun 27, 2024
13 checks passed
@DDtKey DDtKey deleted the use-rustls-as-default branch June 27, 2024 19:29
@github-actions github-actions bot mentioned this pull request Jun 27, 2024
DDtKey pushed a commit that referenced this pull request Jun 28, 2024
## 🤖 New release
* `testcontainers`: 0.18.0 -> 0.19.0

<details><summary><i><b>Changelog</b></i></summary><p>

<blockquote>

## [0.19.0] - 2024-06-27

### Details
#### Bug Fixes
- [❗] Use `rustls-tls` as default for `reqwest`
([#672](#672))

#### Documentation
- Update examples of `GenericImage::with_exposed_port`
([#670](#670))

#### Features
- Add ability to convert `ContainerPort` to `u16`
([#664](#664))

#### Miscellaneous Tasks
- Make `ports` module public
([#665](#665))

#### Performance
- Use separate dropper thread for `current_thread` flavor
([#666](#666))

#### Refactor
- Use multi-threaded runtime for blocking feature
([#667](#667))
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/MarcoIeni/release-plz/).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

Support rustls
1 participant