-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
68 lines (60 loc) · 1.47 KB
/
Cargo.toml
File metadata and controls
68 lines (60 loc) · 1.47 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
[package]
name = "toggle"
version = "0.1.0"
edition = "2021"
authors = ["Steve Morin"]
description = "A CLI tool for toggling code comments across multiple languages"
license = "MIT"
repository = "https://github.com/stevemorin/toggle"
readme = "README.md"
# Configure binary and library targets
[[bin]]
name = "toggle"
path = "src/main.rs"
[lib]
name = "toggle"
path = "src/lib.rs"
[dependencies]
# CLI argument parsing
clap = { version = "4.4", features = ["derive"] }
# Error handling
anyhow = "1.0"
# File path manipulation
walkdir = "2.4"
# Temporary file handling
tempfile = "3.8"
# Diff generation for --dry-run
similar = "2"
# Config file parsing
toml = "0.8"
# Serialization/deserialization
serde = { version = "1", features = ["derive"] }
# JSON output
serde_json = "1"
# Encoding support
encoding_rs = "0.8"
# SHA-256 checksums for atomic journal integrity
sha2 = "0.10"
# Signal handling for graceful interrupt during atomic commits
signal-hook = "0.3"
# Cross-platform advisory file locking for concurrent atomic execution prevention
fd-lock = "4"
[target.'cfg(target_os = "macos")'.dependencies]
# macOS F_FULLFSYNC support for durable fsync
libc = "0.2"
[package.metadata.cargo-semver-checks.lints]
constructible_struct_adds_field = "allow"
[dev-dependencies]
# For benchmarking
criterion = "0.5"
# For CLI testing
assert_cmd = "2.0"
predicates = "3.0"
# Configure benchmarks
[[bench]]
name = "toggle_bench"
harness = false
# Feature flags
[features]
default = []
extended-logging = []