-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
119 lines (91 loc) · 3.05 KB
/
Cargo.toml
File metadata and controls
119 lines (91 loc) · 3.05 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
[package]
name = "rust-guardian"
version = "0.1.1"
edition = "2021"
authors = ["The Rust Guardian Team"]
description = "Dynamic code quality enforcement preventing incomplete or placeholder code"
license = "MIT"
repository = "https://github.com/cloudfunnels/rust-guardian"
documentation = "https://docs.rs/rust-guardian"
keywords = ["code-quality", "static-analysis", "rust", "cli", "validation"]
categories = ["development-tools", "command-line-utilities"]
readme = "README.md"
[lib]
name = "rust_guardian"
path = "src/lib.rs"
[[bin]]
name = "rust-guardian"
path = "src/main.rs"
[dependencies]
# Core parsing and analysis
syn = { version = "2.0", features = ["full", "extra-traits", "visit"] }
quote = "1.0"
proc-macro2 = "1.0"
# Pattern matching
regex = { version = "1.10", features = ["perf"] }
# Serialization and configuration
serde = { version = "1.0", features = ["derive"] }
serde_yaml = "0.9"
serde_json = "1.0"
# CLI framework
clap = { version = "4.5", features = ["derive", "color", "suggestions"] }
# Async runtime
tokio = { version = "1.0", features = ["fs", "rt-multi-thread", "macros", "time"] }
# Parallel processing
rayon = "1.8"
# File system operations
walkdir = "2.4"
glob = "0.3"
# File watching
notify = { version = "6.1", features = ["macos_kqueue"] }
# Error handling
anyhow = "1.0.40" # Minimum version for proper backtrace support with modern Rust
thiserror = "1.0.20" # Minimum version for full #[from] attribute support
# Logging
tracing = "0.1"
tracing-subscriber = { version = "0.3.18", features = ["env-filter", "json"] }
# Utilities
chrono = { version = "0.4.20", features = ["serde"] } # Minimum version with DateTime::default()
uuid = { version = "1.8", features = ["v4"] }
sha2 = "0.10"
# Ensure minimum version to avoid compatibility issues on nightly
# lazy_static 1.3.0+ properly exports macros needed by sharded-slab (used by tracing-subscriber)
lazy_static = "1.3"
# Optional performance optimizations
memmap2 = { version = "0.9", optional = true }
lru = { version = "0.12", optional = true }
# Ensure minimum version of hashbrown to avoid ahash stdsimd issue on nightly
# hashbrown 0.14.5+ requires ahash 0.8.7+ which is compatible with modern Rust nightly
hashbrown = { version = "0.14.5", optional = true }
# Terminal output
crossterm = { version = "0.27", optional = true }
colored = { version = "2.1", optional = true }
[dev-dependencies]
tempfile = "3.8"
criterion = { version = "0.5", features = ["html_reports"] }
rstest = "0.18"
tokio-test = "0.4"
[features]
default = ["cli", "cache", "colors"]
# CLI interface with colored output
cli = ["crossterm", "colored"]
# Performance caching
cache = ["lru", "hashbrown", "memmap2"]
# Colored terminal output
colors = ["colored", "crossterm"]
# All features for development
full = ["cli", "cache", "colors"]
[profile.release]
lto = true
codegen-units = 1
panic = "abort"
[profile.dev]
opt-level = 0
debug = true
[profile.test]
opt-level = 1
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[workspace]
# Intentionally empty to make this crate a standalone workspace root