Skip to main content

Module containers

Module containers 

Source
Expand description

Support for testing using Docker containers.

The Container type is a builder for configuring a container to run. After you call launch, you can use the ContainerHandle to interact with the running container.

Tests using containers must use #[cargo_test(container_test)] to disable them unless the CARGO_CONTAINER_TESTS environment variable is set.

Re-exportsยง

use cargo_util::ProcessBuilder; ๐Ÿ”’
use std::collections::HashMap; ๐Ÿ”’
use std::io::Read; ๐Ÿ”’
use std::path::PathBuf; ๐Ÿ”’
use std::process::Command; ๐Ÿ”’
use std::sync::Mutex; ๐Ÿ”’
use std::sync::atomic::AtomicUsize; ๐Ÿ”’
use std::sync::atomic::Ordering; ๐Ÿ”’
use tar::Header; ๐Ÿ”’

Structsยง

Container
A builder for configuring a container to run.
ContainerHandle
A handle to a running container.
MkFile
Builder for configuring a file to copy into a container.

Functionsยง

remove_if_exists ๐Ÿ”’