Cargo Features
[dependencies]
pact_mock_server = { version = "2.0.2", default-features = false, features = ["datetime", "xml", "plugins", "multipart", "tls"] }
- default = datetime, multipart, plugins, tls, xml
-
These default features are set whenever
pact_mock_server
is added without
somewhere in the dependency tree.default-features = false - datetime default
-
Support for date/time matchers and expressions
Enables datetime of optional pact-plugin-driver, pact_matching, and pact_models
- xml default
-
support for matching XML documents
Enables xml of optional pact-plugin-driver, pact_matching, and pact_models
- plugins default
-
Enables pact-plugin-driver, plugins of pact_matching
Affects
legacy::start_mock_server_for_transport
,mock_server::MockServerConfig.transport_entry
,server_manager::PluginMockServer
… - multipart default
-
suport for MIME multipart bodies
Enables multipart of pact_matching
- tls default
-
Enables hyper-rustls, rcgen, rustls, rustls-pemfile, rustls-webpki, and tokio-rustls
Affects
legacy::start_tls_mock_server
,legacy::start_tls_mock_server_with_config
,legacy::create_tls_mock_server
,mock_server::MockServerConfig.tls_config
…