-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathCargo.toml
More file actions
122 lines (102 loc) · 3.18 KB
/
Cargo.toml
File metadata and controls
122 lines (102 loc) · 3.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
[package]
name = "govctl"
version = "0.9.4"
edition = "2024"
rust-version = "1.96"
description = "Project governance CLI for RFC, ADR, and Work Item management"
license = "MIT"
repository = "https://github.com/govctl-org/govctl"
homepage = "https://github.com/govctl-org/govctl"
documentation = "https://docs.rs/govctl"
readme = "README.md"
keywords = ["governance", "rfc", "cli", "adr", "specification"]
categories = ["command-line-utilities", "development-tools"]
include = [
".claude/.claude-plugin/*",
".claude/agents/*",
".claude/skills/**/*",
"gov/schema/*.json",
"gov/templates/*",
"src/**/*",
"tests/**/*",
"build_support/**/*",
"build.rs",
"Cargo.toml",
"Cargo.lock",
"README.md",
"LICENSE",
]
[[bin]]
name = "govctl"
path = "src/main.rs"
[features]
default = ["tui"]
tui = ["ratatui", "crossterm", "ansi-to-tui"]
ansi-to-tui = ["dep:ansi-to-tui"]
[dependencies]
# CLI framework
clap = { version = "4", features = ["derive"] }
clap_complete = "4"
# Serialization (JSON/TOML)
serde = { version = "1", features = ["derive"] }
serde_json = "1"
toml = "1"
# Validation and versioning
jsonschema = "0.45"
semver = { version = "1", features = ["serde"] }
# Error handling
thiserror = "2"
# Date/time
chrono = { version = "0.4", features = ["serde"] }
# Cryptography (signature verification)
sha2 = "0.10"
# Random number generation (for work item ID strategy)
rand = "0.10"
# Text processing
regex = "1"
slug = "0.1"
strum = { version = "0.28", features = ["derive"] }
winnow = "0.7"
pulldown-cmark = "0.13"
rusqlite = { version = "0.40", features = ["bundled"] }
# File system traversal
walkdir = "2"
globset = "0.4"
tempfile = "3"
# Process-level file locking (for concurrent write safety per RFC-0004)
fs2 = "0.4"
# Self-update (binary replacement from GitHub Releases)
# Implements [[RFC-0002:C-SELF-UPDATE]]
self_update = { version = "0.44", default-features = false, features = ["reqwest", "rustls", "archive-tar", "archive-zip", "compression-flate2", "compression-zip-deflate"] }
# Terminal output
comfy-table = "7"
owo-colors = "4"
supports-color = "3"
# TUI (optional feature)
ratatui = { version = "0.30", optional = true }
crossterm = { version = "0.29", optional = true }
markdown-to-ansi = "0.2.1"
terminal_size = "0.4.3"
ansi-to-tui = { version = "8", optional = true }
[dev-dependencies]
insta = { version = "1", features = ["yaml"] }
regex = "1"
chrono = "0.4"
# [[ADR-0041]] governs package.metadata.binstall archive naming, including the Windows override in package.metadata.binstall.overrides.x86_64-pc-windows-msvc.
[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/govctl-v{ version }-{ target }.tar.gz"
bin-dir = "govctl-v{ version }-{ target }/{ bin }{ binary-ext }"
pkg-fmt = "tgz"
[package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
pkg-url = "{ repo }/releases/download/v{ version }/govctl-v{ version }-{ target }.zip"
pkg-fmt = "zip"
[lints.clippy]
unwrap_used = { level = "deny", priority = 0 }
expect_used = { level = "deny", priority = 0 }
panic = { level = "deny", priority = 0 }
[build-dependencies]
serde = { version = "1", features = ["derive"] }
serde_json = "1"
serde_yaml = "0.9"
toml = "1"
jsonschema = "0.45"