docs.rs failed to build testcontainers-0.27.3
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
testcontainers-0.27.2
Testcontainers-rs
Testcontainers-rs is the official Rust language fork of http://testcontainers.org.
Usage
testcontainers is the core crate
The crate provides an API for working with containers in a test environment.
- Depend on
testcontainers - Implement
testcontainers::core::Imagefor necessary docker-images - Run it with any available runner
testcontainers::runners::*(useblockingfeature for synchronous API)
Example:
- Blocking API (under
blockingfeature)
use ;
- Async API
use ;
async
Ready-to-use images
The easiest way to use testcontainers is to depend on ready-to-use images (aka modules).
Modules are available as a community-maintained crate: testcontainers-modules
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.