vcs-gitlab 0.1.0

Automate the GitLab CLI (glab) from Rust through process execution.
Documentation
[package]
name = "vcs-gitlab"
version = "0.1.0"
description = "Automate the GitLab CLI (glab) from Rust through process execution."
edition.workspace = true
rust-version.workspace = true
license.workspace = true
repository.workspace = true
authors.workspace = true
readme = "README.md"

[dependencies]
# Runs `glab` inside an OS job (Windows Job Object / Linux cgroup) so the process
# tree is killed on close — no orphaned subprocesses. Also the `ProcessRunner`
# seam, `CliClient` core, and structured `Error`.
processkit.workspace = true
# Shared processkit-coupled plumbing: the argv injection guard (`reject_flag_like`),
# needed once `release_view` takes a bare positional `<tag>` string (mirrors
# vcs-github, which guards its `release_view(tag)` the same way).
vcs-cli-support = { path = "../cli-support", version = "0.1" }
# Deserialize `glab … --output json` output into typed structs (MergeRequest/Project).
serde = { version = "1", features = ["derive"] }
serde_json = "1"
# `async fn` in the object-safe `GitLabApi` trait (dyn + mockall friendly).
async-trait = "0.1"
# Auto-generated `MockGitLabApi` for consumers' tests. Test-only — enabled only
# via the `mock` feature, never compiled into production builds.
mockall = { version = "0.13", optional = true }

[features]
# Expose the `mockall`-generated `MockGitLabApi` (and pull in processkit's mocks).
mock = ["dep:mockall", "processkit/mock"]
# Emit a `tracing` event per command run (forwards to processkit's `tracing`).
tracing = ["processkit/tracing"]
# Off by default. Pulls in processkit's `cancellation` feature so `cli_client!`
# emits `GitLab::default_cancel_on(token)` — a consumer builds a cancellable client
# (every command dies when the token fires) and passes it through the facade. No new
# vcs-* API; `CancellationToken` is re-exported from `processkit`.
cancellation = ["processkit/cancellation"]

[dev-dependencies]
# `#[tokio::test]` for the async unit/integration tests.
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }

[package.metadata.docs.rs]
# Build docs.rs with every feature so the optional surfaces (mock / tracing /
# cancellation / serde / stream) are documented (defaults alone hide them), and pass
# `--cfg docsrs` so feature-gated items render an "Available on feature `x`" badge.
all-features = true
rustdoc-args = ["--cfg", "docsrs"]

[lints]
workspace = true