Cargo Features

[dependencies]
stubr = { version = "0.6.2", default-features = false, features = ["cloud", "verify", "verify-actix", "attributes", "record-standalone", "record-isahc", "record-reqwest", "record-actix", "grpc"] }
default = attributes

The attributes feature is set by default whenever stubr is added without default-features = false somewhere in the dependency tree.

cloud
verify verify-actix? = json_value_merge
verify-actix = actix-http, actix-service, actix-web, verify

Affects verify::actix

attributes default = stubr-attributes
record-standalone = warp, warp-reverse-proxy

Affects record::standalone, standalone::StubrRecord

record-isahc = isahc

Affects client::isahc_client

record-reqwest = reqwest

Enables blocking of reqwest ^0.11

Affects client::reqwest_client, record_client::reqwest

record-actix = actix-http, actix-service, actix-web, futures-util

Affects record_client::actix

grpc

Enables protobuf =3.2.0, protobuf-json-mapping, protobuf-parse, and tonic ^0.9

tonic:

For gRPC

Affects model::grpc, model::JsonStub.grpc_request, model::JsonStub.grpc_response, model::JsonStub.proto_file, template::HandlebarTemplatable.render_response_template, wiremock::grpc

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.

stubr-attributes attributes
isahc record-isahc?
reqwest record-reqwest?

Enables reqwest ^0.11

json_value_merge verify?

Enables json_value_merge ^1.1

actix-web record-actix? verify-actix?
actix-http record-actix? verify-actix?
actix-service record-actix? verify-actix?
futures-util record-actix?
warp record-standalone?
warp-reverse-proxy record-standalone?