[package]
edition = "2024"
name = "pact_consumer"
version = "1.4.3"
authors = [
"Ronald Holshausen <ronald.holshausen@gmail.com>",
"Eric Kidd <git@randomhacks.net>",
]
build = false
exclude = ["*.iml"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pact-Rust module that provides support for writing consumer pact tests"
homepage = "https://www.pact.io"
readme = "README.md"
keywords = [
"testing",
"pact",
"cdc",
]
license = "MIT AND Apache-2.0"
repository = "https://github.com/pact-foundation/pact-reference/blob/master/rust/pact_consumer"
resolver = "2"
[features]
colour = ["dep:yansi"]
datetime = [
"pact_models/datetime",
"pact_matching/datetime",
"pact_mock_server/datetime",
"pact-plugin-driver?/datetime",
]
default = [
"datetime",
"xml",
"plugins",
"multipart",
"tls",
"colour",
]
multipart = [
"pact_matching/multipart",
"pact_mock_server/multipart",
]
plugins = [
"dep:pact-plugin-driver",
"pact_matching/plugins",
"pact_mock_server/plugins",
]
tls = ["pact_mock_server/tls"]
xml = [
"pact_models/xml",
"pact_matching/xml",
"pact_mock_server/xml",
"pact-plugin-driver?/xml",
]
[lib]
name = "pact_consumer"
path = "src/lib.rs"
[[test]]
name = "messages"
path = "tests/messages.rs"
[[test]]
name = "tests"
path = "tests/tests.rs"
[dependencies.anyhow]
version = "1.0.100"
[dependencies.async-trait]
version = "0.1.89"
[dependencies.bytes]
version = "1.11.1"
[dependencies.itertools]
version = "0.14.0"
[dependencies.maplit]
version = "1.0.2"
[dependencies.pact-plugin-driver]
version = "~0.7.5"
optional = true
default-features = false
[dependencies.pact_matching]
version = "~2.0.3"
default-features = false
[dependencies.pact_mock_server]
version = "~2.2.0"
default-features = false
[dependencies.pact_models]
version = "~1.3.8"
default-features = false
[dependencies.regex]
version = "1.12.2"
[dependencies.serde_json]
version = "1.0.149"
[dependencies.termsize]
version = "0.1.9"
[dependencies.tokio]
version = "1.49.0"
features = ["full"]
[dependencies.tracing]
version = "0.1.44"
[dependencies.url]
version = "2.5.8"
[dependencies.yansi]
version = "1.0.1"
optional = true
[dev-dependencies.env_logger]
version = "0.11.8"
[dev-dependencies.expectest]
version = "0.12.0"
[dev-dependencies.pretty_assertions]
version = "1.4.1"
[dev-dependencies.proclaim-it]
version = "0.0.1"
[dev-dependencies.rand]
version = "0.8.5"
[dev-dependencies.reqwest]
version = "0.13.1"
features = [
"rustls",
"blocking",
"json",
]
default-features = false
[dev-dependencies.serde]
version = "1.0.228"
features = ["derive"]
[dev-dependencies.tempfile]
version = "3.24.0"
[dev-dependencies.test-log]
version = "0.2.19"
features = ["trace"]
[dev-dependencies.tokio-test]
version = "0.4.5"
[dev-dependencies.tracing-subscriber]
version = "0.3.22"
features = [
"env-filter",
"tracing-log",
"fmt",
]