Closed github-actions[bot] closed 2 months ago
Name | Link |
---|---|
Latest commit | c8e0ec62a7bd58755a4cbbcb9d98aa682afa62c8 |
Latest deploy log | https://app.netlify.com/sites/testcontainers-rust/deploys/666dfcdb4bcd9d0008f5d92d |
Deploy Preview | https://deploy-preview-663--testcontainers-rust.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
π€ New release
testcontainers
: 0.17.0 -> 0.18.0Changelog
This PR was generated with release-plz.
Migration Guide
Overview
Most of the breaking changes introduced in this version primarily impact developers who implement their own images. For general usage, the API remains mostly the same, with some improvements and enhancements for better performance and flexibility.
1. Renaming of
RunnableImage
RunnableImage
ContainerRequest
Image
toContainerRequest
(formerlyRunnableImage
) is no longer necessary. Instead, you can now directly importtestcontainers::ImageExt
and override image parameters as needed.2. Changes to
Image
MethodsImage::tag
andImage::name
String
&str
&str
. This change helps improve performance by avoiding unnecessary allocations.3. Changes to
Image::exposed_ports
Image::exposed_ports
&[ContainerPort]
ContainerPort
, which supports exposing ports with protocolsTCP
,UDP
, andSCTP
. Update your code to handle the slice accordingly.4. Removal of Associated Type
Args
inImage
Image
had an associated typeArgs
.Args
is removed.Image::cmd
, which returnsimpl IntoIterator<Item = impl Into<String>>
. This change allows more flexibility in specifying command arguments. Ensure your code is updated to work with the new method signature.5. Simplification of Trait Implementation in
Image
Image
requiredBox<dyn ..>
for certain traits.impl
Trait in Trait (RPITIT).Box<dyn ..>
,Image
now uses RPITIT for trait returns. This change simplifies the code and improves readability and performance. Familiarize yourself with RPITIT to understand its benefits and applications in your implementation.6. Changes to
RunnableImage::with_mapped_port
RunnableImage::with_mapped_port
ImageExt::with_mapped_port