Cargo Features

Bollard has no features set by default.

[dependencies]
bollard = { version = "0.17.1", features = ["buildkit", "test_http", "test_ssl", "test_macos", "test_sshforward", "json_data_content", "ssl", "aws-lc-rs", "ssl_providerless", "webpki", "chrono", "time"] }
buildkit = bollard-buildkit-proto, chrono, num, rand, ssl, tokio-stream, tonic, tower-service

Enable Buildkit-enabled docker image building

Enables buildkit of bollard-stubs, fs of tokio, io of tokio-util

Affects image::BuildImageOptions.session, image::ImageBuildOutput

test_http

Enable tests specifically for the http connector

test_ssl = ssl

Enable tests specifically for rustls

test_macos

Enable tests specifically for macos

test_sshforward

Enable tests specifically for buildkit's sshforward functionality

json_data_content

Enable JSON payload in deserialization errors

ssl buildkit? test_ssl? webpki? = ssl_providerless

Enable rustls / ssl

Enables ring of rustls

aws-lc-rs = ssl_providerless

Enables aws-lc-rs of rustls

rustls:

Alias because Cargo features commonly use -

ssl_providerless aws-lc-rs? ssl? = home, hyper-rustls, rustls, rustls-native-certs, rustls-pemfile, rustls-pki-types
webpki = ssl

Enables webpki-roots

chrono buildkit?

Enables chrono, chrono of bollard-stubs

Affects container::Stats.read, container::Stats.preread, system::EventsOptions.since, system::EventsOptions.until

time

Enables time, time of bollard-stubs

Affects container::Stats.read, container::Stats.preread, docker::deserialize_rfc3339, docker::serialize_rfc3339, system::EventsOptions.since, system::EventsOptions.until

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

bollard-buildkit-proto buildkit?
home ssl_providerless?
hyper-rustls ssl_providerless?
num buildkit?
rand buildkit?
rustls aws-lc-rs? ssl? ssl_providerless?
rustls-native-certs ssl_providerless?

Enables rustls-native-certs ^0.7.0

rustls-pemfile ssl_providerless?
rustls-pki-types ssl_providerless?
tonic buildkit?
tokio-stream buildkit?
tower-service buildkit?