api-bones-test 4.5.1

Test helpers for api-bones: builders and response-assertion utilities
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.85"
name = "api-bones-test"
version = "4.5.1"
authors = ["Gregoire Salingue"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Test helpers for api-bones: builders and response-assertion utilities"
homepage = "https://github.com/brefwiz/api-bones"
documentation = "https://docs.rs/api-bones-test"
readme = false
keywords = [
    "testing",
    "rest",
    "http",
    "api",
    "axum",
]
categories = ["development-tools::testing"]
license = "MIT"
repository = "https://github.com/brefwiz/api-bones"
resolver = "2"

[features]
axum = [
    "builders",
    "dep:axum",
    "dep:axum-test",
    "dep:tower",
    "dep:hyper",
    "api-bones/axum",
]
builders = []
default = ["builders"]
nats = [
    "builders",
    "dep:async-nats",
    "dep:futures-util",
    "dep:tokio",
    "dep:testcontainers",
]
reqwest = [
    "builders",
    "dep:reqwest",
    "dep:wiremock",
]

[lib]
name = "api_bones_test"
path = "src/lib.rs"

[[test]]
name = "axum_assertions"
path = "tests/axum_assertions.rs"

[[test]]
name = "builders"
path = "tests/builders.rs"

[[test]]
name = "nats_capture"
path = "tests/nats_capture.rs"

[[test]]
name = "reqwest_assertions"
path = "tests/reqwest_assertions.rs"

[dependencies.api-bones]
version = "4.4"
features = [
    "chrono",
    "uuid",
    "serde",
    "std",
]

[dependencies.async-nats]
version = "0.38"
optional = true

[dependencies.axum]
version = "0.8"
optional = true

[dependencies.axum-test]
version = "17"
optional = true

[dependencies.chrono]
version = "0.4"

[dependencies.futures-util]
version = "0.3"
optional = true

[dependencies.hyper]
version = "1"
optional = true

[dependencies.reqwest]
version = "0.12"
features = ["json"]
optional = true

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.serde_json]
version = "1.0"

[dependencies.testcontainers]
version = "0.23"
optional = true

[dependencies.thiserror]
version = "2"
default-features = false

[dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt",
    "time",
]
optional = true

[dependencies.tower]
version = "0.5"
optional = true

[dependencies.uuid]
version = "1.23"
features = ["v4"]

[dependencies.wiremock]
version = "0.6"
optional = true

[dev-dependencies.api-bones]
version = "4.4"
features = [
    "chrono",
    "uuid",
    "serde",
    "std",
    "axum",
]

[dev-dependencies.serde_json]
version = "1.0"

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
]

[lints.clippy]
derive_partial_eq_without_eq = "allow"
future_not_send = "allow"
missing_const_for_fn = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
option_if_let_else = "allow"

[lints.clippy.all]
level = "deny"
priority = -1

[lints.clippy.nursery]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "deny"
priority = -1

[lints.rust.dead_code]
level = "deny"
priority = -1

[lints.rust.unexpected_cfgs]
level = "allow"
priority = 0
check-cfg = ["cfg(coverage)"]

[lints.rust.unsafe_code]
level = "deny"
priority = -1

[lints.rust.unsafe_op_in_unsafe_fn]
level = "deny"
priority = -1

[lints.rust.unused_imports]
level = "deny"
priority = -1

[lints.rust.unused_variables]
level = "deny"
priority = -1

[lints.rust.warnings]
level = "deny"
priority = -1