rtb-vcs 0.7.0

Rust Tool Base — release-provider abstractions and backends (GitHub, GitLab, Bitbucket, Gitea, Codeberg, Direct).
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 = "2021"
rust-version = "1.82"
name = "rtb-vcs"
version = "0.7.0"
authors = ["Matt Cockayne <matt@phpboyscout.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust Tool Base — release-provider abstractions and backends (GitHub, GitLab, Bitbucket, Gitea, Codeberg, Direct)."
homepage = "https://rtb.phpboyscout.uk"
documentation = "https://rtb.phpboyscout.uk"
readme = "README.md"
keywords = [
    "cli",
    "framework",
    "scaffolding",
    "ai",
    "mcp",
]
categories = [
    "command-line-interface",
    "development-tools",
]
license = "MIT"
repository = "https://gitlab.com/phpboyscout/rust-tool-base"

[features]
_http = [
    "dep:reqwest",
    "dep:serde_json",
    "dep:bytes",
    "dep:futures-util",
    "dep:tokio-util",
]
bitbucket = ["_http"]
codeberg = ["gitea"]
default = [
    "github",
    "gitlab",
    "gitea",
    "codeberg",
    "direct",
    "bitbucket",
    "git",
]
direct = ["_http"]
git = [
    "dep:gix",
    "dep:rtb-credentials",
    "dep:futures-core",
]
gitea = ["_http"]
github = ["_http"]
gitlab = ["_http"]
integration = []

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.async-trait]
version = "0.1.91"

[dependencies.bytes]
version = "1.12.1"
optional = true

[dependencies.futures-core]
version = "0.3.33"
optional = true

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

[dependencies.gix]
version = "0.85.0"
features = [
    "blocking-network-client",
    "blocking-http-transport-reqwest-rust-tls",
    "parallel",
    "extras",
    "sha1",
    "blame",
]
optional = true
default-features = false

[dependencies.linkme]
version = "0.3.37"

[dependencies.miette]
version = "7.6.0"
features = ["fancy"]

[dependencies.reqwest]
version = "0.13.4"
features = [
    "rustls",
    "json",
    "stream",
    "gzip",
]
optional = true
default-features = false

[dependencies.rtb-app]
version = "0.7.0"

[dependencies.rtb-credentials]
version = "0.6.0"
optional = true

[dependencies.rtb-error]
version = "0.6.0"

[dependencies.secrecy]
version = "0.10.3"

[dependencies.semver]
version = "1.0.28"
features = ["serde"]

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

[dependencies.serde_json]
version = "1.0.150"
optional = true

[dependencies.thiserror]
version = "2.0.19"

[dependencies.time]
version = "0.3.53"
features = [
    "serde",
    "formatting",
    "parsing",
    "macros",
]

[dependencies.tokio]
version = "1.53.0"
features = ["full"]

[dependencies.tokio-util]
version = "0.7.18"
features = ["io"]
optional = true

[dependencies.tracing]
version = "0.1.44"

[dev-dependencies.cucumber]
version = "0.23.0"
features = ["macros"]

[dev-dependencies.futures]
version = "0.3.33"

[dev-dependencies.reqwest]
version = "0.13.4"
features = [
    "rustls",
    "json",
    "stream",
    "gzip",
    "multipart",
]
default-features = false

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

[dev-dependencies.serde_yaml]
version = "0.9.34"

[dev-dependencies.tempfile]
version = "3.27.0"

[dev-dependencies.testcontainers]
version = "0.27.3"

[dev-dependencies.wiremock]
version = "0.6.5"

[lints.clippy]
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
multiple_crate_versions = "allow"

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

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

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

[lints.rust]
missing_docs = "warn"
unsafe_code = "deny"